QuestionQ91Verified/Using Subqueries to Solve QueriesCopy linkReport a problemAsk AstroTutorSave questionExamine the following SQL statement: Which two statements are true?Choose twoAThe DELETE statement executes successfully even if the subquery selects multiple rows.BThe subquery is executed before the DELETE statement is executed.CThe subquery is not a correlated subquery.DAll existing rows in the EMPLOYEES table are deleted.EThe subquery is executed for every row in the EMPLOYEES table.Show AnswerAnswerExplanationEXISTS 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.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion