Bird
0
0

Find the error in this query: SELECT MAX(Price FROM Products;

medium📝 Debug Q7 of 15
SQL - Aggregate Functions
Find the error in this query: SELECT MAX(Price FROM Products;
AMAX() cannot be used on Price column
BMissing closing parenthesis after Price
CProducts table does not exist
DMAX should be written as max
Step-by-Step Solution
Solution:
  1. Step 1: Check parentheses balance

    The query has an opening parenthesis after MAX but no closing parenthesis after Price.
  2. Step 2: Confirm syntax correctness

    Missing closing parenthesis causes syntax error.
  3. Final Answer:

    Missing closing parenthesis after Price -> Option B
  4. Quick Check:

    Parentheses must be balanced [OK]
Quick Trick: Check all parentheses are closed in functions [OK]
Common Mistakes:
MISTAKES
  • Unbalanced parentheses
  • Wrong function usage
  • Assuming case sensitivity matters

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes