QuestionQ247

VerifiedUsing Single-Row Functions to Customize Output

Examine the following list of queries:

Question Image

Which two statements are true?

Choose two
Explanation

For numeric values, ROUND with a negative precision rounds to the left of the decimal point, so ROUND(15.193, -1) returns 20. TRUNC accepts a negative precision and truncates digits to the left of the decimal point, so it does not cause an error. The first and fourth expressions both evaluate to 15: truncating to one decimal place before rounding, or rounding to one decimal place before truncating to an integer, produces the same final result.

Learn more

Community Discussion

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