Identify three ORDER BY clauses either one of which can complete the query.
ORDER BY "Last name"
ORDER BY 2, cust_id
ORDER BY CUST_NO
ORDER BY 2, 1
ORDER BY "CUST_NO"
Correct answer: ABD
Explanation:
Using the ORDER BY Clause in Set Operations The ORDER BY clause can appear only once at the end of the compound query. Component queries cannot have individual ORDER BY clauses. The ORDER BY clause recognizes only the columns of the first SELECT query. By default, the first column of the first SELECT query is used to sort the output in an ascending order.
Using the ORDER BY Clause in Set Operations
The ORDER BY clause can appear only once at the end of the compound query.
Component queries cannot have individual ORDER BY clauses.
The ORDER BY clause recognizes only the columns of the first SELECT query.
By default, the first column of the first SELECT query is used to sort the output in an ascending order.
Question 2
Which statement is true regarding external tables?
The CREATE TABLE AS SELECT statement can be used to upload data into a normal table in the database from an external table.
The data and metadata for an external table are stored outside the database.
The default REJECT LIMIT for external tables is UNLIMITED.
ORACLE_LOADER and ORACLE_DATAPUMP have exactly the same functionality when used with an external table.