Oracle Database Administration I — Question 132

The sales table has columns PROD_ID and QUANTITY_SOLD of data type number.

Which two queries execute successfully? (Choose two.)

Answer options

Correct answer: A, D

Explanation

Query A is valid as it correctly counts PROD_ID after filtering records with QUANTITY_SOLD greater than 55000 and groups by PROD_ID. Query D fails because 'proa_id' is a misspelled column name; it should be 'prod_id'. The other queries contain syntax errors or misuse of SQL clauses, which prevents them from executing successfully.