SQL - Set OperationsWhat is the main reason to use INTERSECT in SQL?ATo combine all rows from two queries including duplicatesBTo find rows common to two query resultsCTo remove rows from a tableDTo sort query resultsCheck Answer
Step-by-Step SolutionSolution:Step 1: Define INTERSECT operationINTERSECT returns only the rows that appear in both query results.Step 2: Contrast with other operationsUNION combines all rows, DELETE removes rows, and ORDER BY sorts results.Final Answer:To find rows common to two query results -> Option BQuick Check:INTERSECT finds common rows = True [OK]Quick Trick: INTERSECT returns only shared rows between queries [OK]Common Mistakes:MISTAKESConfusing INTERSECT with UNIONThinking INTERSECT deletes dataAssuming INTERSECT sorts results
Master "Set Operations" in SQL9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More SQL Quizzes Aggregate Functions - AVG function - Quiz 2easy GROUP BY and HAVING - GROUP BY single column - Quiz 5medium GROUP BY and HAVING - GROUP BY single column - Quiz 4medium INNER JOIN - INNER JOIN syntax - Quiz 8hard LEFT and RIGHT JOIN - Why outer joins are needed - Quiz 15hard LEFT and RIGHT JOIN - Finding unmatched rows with LEFT JOIN - Quiz 15hard Set Operations - UNION ALL with duplicates - Quiz 11easy Subqueries - Subquery in FROM clause (derived table) - Quiz 11easy Views - Updatable views and limitations - Quiz 10hard Views - Dropping and altering views - Quiz 1easy