πŸ“Š MySQL
Q. The following MySQL statement belongs to which condition types?
SELECT fname
FROM person
WHERE dept_id= (SELECT dept_id FROM department WHERE names=’s’);
  • (A) Equality condition
  • (B) mysqlcopydb
  • (C) Range condition
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Equality condition

Explanation: This MySQL statement uses a subquery to find the department ID of a department named 's' and then selects all the first names (fname) from the person table where the department ID matches the result of the subquery.

Explanation by: Vikash Gupta
This MySQL statement uses a subquery to find the department ID of a department named 's' and then selects all the first names (fname) from the person table where the department ID matches the result of the subquery.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
95%
Success Rate