QuestionQ74

VerifiedUsing Single-Row Functions to Customize Output

Consider this query:

SELECT TRUNC(ROUND(156.00,-2),-1) FROM DUAL;  

What result does it return?

Explanation

ROUND with a precision of -2 rounds 156.00 to the nearest hundred, yielding 200. TRUNC with a precision of -1 removes digits to the left of the decimal through the tens position; 200 therefore remains 200.

Learn more

Community Discussion

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