Which of the following Oracle SQL statements is not correct?

2018

Which of the following Oracle SQL statements is not correct?

  1. A.

    SELECT * FROM Customers
    ORDER BY Country;

  2. B.

    SELECT * FROM Customers
    ORDER BY Country DESC;

  3. C.

    SELECT * FROM Customers
    ORDER BY Country ASC, DESC CustomerName;

  4. D.

    SELECT * FROM Customers
    ORDER BY Country ASC, CustomerName DESC;

Attempted by 257 students.

Show answer & explanation

Correct answer: C

Option C is incorrect because Oracle SQL requires column names to precede ASC or DESC keywords in the ORDER BY clause. In option C, the keyword DESC appears before the column identifier CustomerName without a preceding column name.

Explore the full course: Up Lt Grade Assistant Teacher 2025