Oracle
1Z0-071 · Question #207
View the Exhibit and examine the details of the ORDER_ITEMS table. Evaluate the following SQL statements: Statement 1: SELECT MAX(unit_pricequantity) "Maximum Order" FROM order_items; Statement 2…
The correct answer is A. Statement 2 would return multiple rows of output. B. Both statements would ignore NULL values for the UNIT_PRICE and QUANTITY columns. E. Statement 1 would return only one row of output. See the full explanation below for the reasoning.
Question
View the Exhibit and examine the details of the ORDER_ITEMS table. Evaluate the following SQL statements:
Statement 1:
SELECT MAX(unit_price*quantity) “Maximum Order” FROM order_items; Statement 2:
SELECT MAX(unit_price*quantity) “Maximum Order” FROM order_items GROUP BY order_id; Which statements are true regarding the output of these SQL statements? (Choose all that apply.)
Exhibit
Options
- AStatement 2 would return multiple rows of output.
- BBoth statements would ignore NULL values for the UNIT_PRICE and QUANTITY columns.
- CStatement 1 would not return give the same output.
- DBoth the statements would give the same output.
- EStatement 1 would return only one row of output.
How the community answered
(34 responses)- A79% (27)
- C15% (5)
- D6% (2)
Community Discussion
No community discussion yet for this question.
