Q15. Table ORDER_ITEMS contains columns ORDER_ID, UNIT_PRICE and QUANTITY, of data type NUMBER.
Examine these 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 two statements are true?
- (A). Statement 1 returns only one row of output.
- (B). Statement 2 returns only one row of output.
- (C). Both statements will return NULL if either UNIT_PRICE or QUANTITY contains NULL.
- (D). Both the statements give the same output.
- (E). Statement 2 may return multiple rows of output.
Xem thêm:
- Lịch Sử Phát Triển Và Ứng Dụng Của Công Nghệ Blockchain
- Cài đặt Oracle Database 19c với Grid Infrastructure Standalone trên Linux – ASM database single instance
- Quản trị AWR và ADDM trong môi trường Oracle Multitenant CDB và PDB
- Q23 In which two scenarios is complete recovery possible?
- Q110. You issued this command: Which two are true? (Choose two.)