QuestionQ91

VerifiedUsing Subqueries to Solve Queries

Examine the following SQL statement:

Question Image

Which two statements are true?

Choose two
Explanation

EXISTS tests only whether the subquery returns at least one row; it does not fail if the subquery returns multiple rows. The reference to e.employee_id ties the subquery to each candidate row of EMPLOYEES, making it a correlated subquery evaluated for each outer-table row when determining whether that row is deleted.

Community Discussion

No comments yet. Be the first to start the discussion!