Valid 1z0-071 Dumps shared by EduDump.com for Helping Passing 1z0-071 Exam! EduDump.com now offer the newest 1z0-071 exam dumps, the EduDump.com 1z0-071 exam questions have been updated and answers have been corrected get the newest EduDump.com 1z0-071 dumps with Test Engine here:
The PRODUCT_INFORMATION table has a UNIT_PRICE column of 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?
Correct Answer: B,E
The TO_CHAR function is used to convert a number to a string format in Oracle SQL. In this format mask ' $9,999', the dollar sign is a literal, and the 9 placeholders represent a digit in the output. The comma is a digit group separator. A). This statement is incorrect because the format model does not have enough digit placeholders to display the full number 1023.99; it would round it to $1,023 not $1,024. B. This statement is correct. Given the format ' $9,999', the number 1023.99 will be formatted as $1,023 because the format rounds the number to no decimal places. C. This is incorrect because the format '$9,999' cannot display the number 10235.99; it exceeds the format's capacity. D. This is incorrect for the same reason as C, and the format would not change the thousands to hundreds. E. This statement is correct. If the number exceeds the maximum length of the format mask, which is 4 digits in this case, Oracle SQL displays a series of hash marks (#) instead of the number. These formatting rules are described in the Oracle Database SQL Language Reference, which covers the TO_CHAR function and its number formatting capabilities.