QuestionQ86

VerifiedManipulating Data

Review the description of the ORDERS table:

Question Image

Review the description of the INVOICES table:

Question Image

Which three statements execute successfully?

Choose three
Explanation

Set-operator component queries must return the same number of columns with corresponding compatible datatypes; the NUMBER and DATE columns satisfy this requirement. For a compound query, ORDER BY applies to the full result and must appear after the final component query, using a result-column position or name/alias. Thus the final ORDER BY clauses in C, D, and E are valid; E explicitly assigns invoice_id as the first result-column alias.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!