Bird
0
0

Identify the error in the following SQL query:

medium📝 Debug Q6 of 15
SQL - Advanced Joins
Identify the error in the following SQL query:
SELECT * FROM Table1 CROSSJOIN Table2;
AMissing space between CROSS and JOIN keywords.
BTable2 is not specified correctly.
CSELECT * is invalid syntax.
DCROSS JOIN cannot be used without WHERE clause.
Step-by-Step Solution
Solution:
  1. Step 1: Check CROSS JOIN syntax

    The correct syntax requires a space between CROSS and JOIN keywords.
  2. Step 2: Identify error in query

    Query uses 'CROSSJOIN' as one word, which is invalid.
  3. Final Answer:

    Missing space between CROSS and JOIN keywords. -> Option A
  4. Quick Check:

    Correct syntax = 'CROSS JOIN' with space [OK]
Quick Trick: Write 'CROSS JOIN' as two words with space [OK]
Common Mistakes:
MISTAKES
  • Writing CROSSJOIN as one word
  • Forgetting JOIN keyword
  • Adding unnecessary WHERE clause

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes