Bird
0
0

Which SQL keyword is used to compare a column value with the result of a subquery in the WHERE clause?

easy📝 Conceptual Q2 of 15
SQL - Subqueries
Which SQL keyword is used to compare a column value with the result of a subquery in the WHERE clause?
AJOIN
BGROUP BY
CIN
DORDER BY
Step-by-Step Solution
Solution:
  1. Step 1: Identify the keyword for comparing with subquery results

    The keyword IN is commonly used to check if a value matches any value returned by a subquery.
  2. Step 2: Eliminate unrelated keywords

    JOIN is for combining tables, GROUP BY and ORDER BY are for grouping and sorting, not comparison.
  3. Final Answer:

    IN -> Option C
  4. Quick Check:

    Subquery comparison keyword = IN [OK]
Quick Trick: Use IN to compare column with subquery results in WHERE [OK]
Common Mistakes:
MISTAKES
  • Using JOIN instead of IN in WHERE clause
  • Confusing GROUP BY with filtering
  • Using ORDER BY for filtering

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes