QuestionQ234Verified/Using Subqueries to Solve QueriesCopy linkReport a problemAsk AstroTutorSave questionReview the following statement: Which two statements are true?Choose twoAThe statement executes successfully only if the subquery does not return multiple rows.BThe subquery is not a correlated subquery.CThe subquery is evaluated once for each row selected by the outer query.DThe subquery is executed for every row in the EMP_HISTORY table.EThe subquery is a correlated subquery.Show AnswerAnswerExplanatione.employee_id is an outer-query reference, making the EXISTS subquery correlated. A correlated subquery is conceptually evaluated once for each row processed by its parent statement. An EXISTS subquery may return zero or more rows; it does not require a single-row result.Learn moreOracle Database SQL Language Reference: Using SubqueriesOracle Database SQL Language Reference: Unnesting of Nested SubqueriesShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion