Which three SELECT statements display 2000 in the format "$2,000.00"?

Which three SELECT statements display 2000 in the format “$2,000.00”? (Choose three.)

Which three SELECT statements display 2000 in the format “$2,000.00”? (Choose three.)

A.
SELECT TO_CHAR(2000, ‘$N,NNN.NN’)
FROM dual;

B.
SELECT TO_CHAR(2000, ‘$9,999.00’)
FROM dual;

C.
SELECT TO_CHAR(2000, ‘$#,###.##’)
FROM dual;

D.
SELECT TO_CHAR(2000, ‘$9,999.99’)
FROM dual;

E.
SELECT TO_CHAR(2000, ‘$0,000.00’)
FROM dual;

F.
SELECT TO_CHAR(2000, ‘$2,000.00’)
FROM dual;

Explanation:

Only queries in answers B, C and D will show result as in the format “$2,000.00”.
Incorrect Answers:
A: Oracle error “ORA-01481: invalid number format model” will be generated.
F: Oracle error “ORA-01481: invalid number format model” will be generated.OCP Introduction to
Oracle 9i: SQL Exam Guide, Jason Couchman, p. 356-365Chapter 8: User Access Control in
Oracle



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Nandha Kumar K

Nandha Kumar K

The answer is
B
D
F

dames

dames

BDE is correct.

ravi

ravi

Can any1 explain??

Dip

Dip

BDE is correct