Oracle
1Z0-047 · Question #106
1Z0-047 Question #106: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-047 to reveal the answer and full explanation for question #106. The question stem and answer options stay visible for context.
Question
View the Exhibit and examine the description of the ORDERS table. You need to display CUSTOMER_ID for all customers who have placed orders more than three times in the last six months. You issued the following SQL statement: SELECT customer_id,COUNT(order_id) FROM orders WHERE COUNT(order_id)>3 AND order_date BETWEEN ADD_MONTHS(SYSDATE,-6) AND SYSDATE GROUP BY customer_id; Which statement is true regarding the execution of the above statement?
Options
- AIt would execute successfully and provide the desired result.
- BIt would not execute because the WHERE clause cannot have an aggregate function.
- CIt would not execute because the ORDER_ID column is not included in the GROUP BY clause.
- DIt would not execute because the GROUP BY clause should be placed before the WHERE clause.
Unlock 1Z0-047 to see the answer
You've previewed enough free 1Z0-047 questions. Unlock 1Z0-047 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.