Oracle
1Z0-061 · Question #306
1Z0-061 Question #306: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-061 to reveal the answer and full explanation for question #306. The question stem and answer options stay visible for context.
Question
View the Exhibit and examine the structure of the PRODUCTS table. You want to display the category with the maximum number of items. You issue the following query: SQL>SELECT COUNT(), prod_category_id FROM products GROUP BY prod_category_id HAVING COUNT() = (SELECT MAX(COUNT(*)) FROM products); What is the outcome?
Options
- AIt executes successfully and gives the correct output.
- BIt executes successfully but does not give the correct output.
- CIt generates an error because the subquery does not have a GROUP BY clause.
- DIt generates an error because = is not valid and should be replaced by the IN operator.
Unlock 1Z0-061 to see the answer
You've previewed enough free 1Z0-061 questions. Unlock 1Z0-061 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.