New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-082 Topic 5 Question 6 Discussion

Actual exam question for Oracle's 1Z0-082 exam
Question #: 6
Topic #: 5
[All 1Z0-082 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A, E

https://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqlj27781.html

The Expression can contain multiple column references or expressions, but it cannot contain another aggregate or subquery. It must evaluate to a built-in data type. You can therefore call methods that evaluate to built-in data types. (For example, a method that returns a java.lang.Integer or int evaluates to an INTEGER.) If an expression evaluates to NULL, the aggregate skips that value.


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77