πŸ“Š MySQL
Q. Consider a database name "db_name" whose attributes are intern_id (primary key), subject.
Intern_id = {1, 2, 3, 4, 5, 6}
Subject = {sql, oop, sql, oop, c, c++}
If these are one to one relation then what will be the output of the following MySQL statement?
SELECT intern_id
FROM db_name
WHERE subject IN (c, c++, oop);
  • (A) {5, 6}
  • (B) Inequality condition
  • (C) {3, 4}
  • (D) {2, 4, 5, 6}
πŸ’¬ Discuss
βœ… Correct Answer: (D) {2, 4, 5, 6}

Explanation: This question asks you to understand how MySQL selects data from a database table based on specific conditions. Let's break it down step by step:

Explanation by: Kiran Rapria
This question asks you to understand how MySQL selects data from a database table based on specific conditions. Let's break it down step by step:

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
69
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Kiran Rapria
Publisher
πŸ“ˆ
90%
Success Rate