Oracle
1Z0-071 · Question #222
1Z0-071 Question #222: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-071 to reveal the answer and full explanation for question #222. The question stem and answer options stay visible for context.
Question
View the Exhibit and examine the structure of the SALES table. The following query is written to retrieve all those product IDs from the SALES table that have more than 55000 sold and have been ordered more than 10 times. SQL> SELECT prod_id FROM sales WHERE quantity_sold > 55000 and COUNT() > 10 GROUP BY prod_id HAVING COUNT() > 10; Which statement is true regarding this SQL statement?
Exhibit
Options
- AIt executes successfully and generates the required result.
- BIt produces an error because COUNT(*) should be specified in the SELECT clause also.
- CIt produces an error because COUNT(*) should be only in the HAVING clause and not in the
- DIt executes successfully but produces no result because COUNT(prod_id) should be used instead of
Unlock 1Z0-071 to see the answer
You've previewed enough free 1Z0-071 questions. Unlock 1Z0-071 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
