1.

Which operators test whether a subquery returns any rows?(a) IN and NOT IN(b) EXISTS and NOT EXISTS(c) PRESENT(d) ABSENTI got this question in homework.My question comes from Performing Multiple in portion Using SQL to Manage Data of MySQL

Answer» RIGHT option is (b) EXISTS and NOT EXISTS

Easiest explanation: The OPERATORS ‘EXISTS’ and ‘NOT EXISTS’ operators only TEST WHETHER a subquery returns any rows. If it returns a row, ‘EXISTS’ results into true and ‘NOT EXISTS’ results into false.


Discussion

No Comment Found

Related InterviewSolutions