QuestionQ58

VerifiedUsing Single-Row and Aggregate Functions

The PRODUCT_INFORMATION table includes a UNIT_PRICE column with the data type NUMBER (8, 2).

Evaluate this SQL statement:

SELECT TO_CHAR(unit_price, '$9,999') FROM product_information;  

Which two statements are true about the output?

Choose two
Explanation

The '$9,999' number format model permits four digits to the left of the decimal point and specifies no decimal positions, so 1023.99 is rounded to $1,024. Positive values have a leading sign-position blank when the model does not contain MI, S, or PR. A value with five integer digits, such as 10235.99, exceeds the model’s available digit positions and is represented by pound signs; the positive sign position produces seven # characters.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!