Evaluate the SQL statement: SELECT ROUND(45.953, -1), TRUNC(45.936, 2) FROM dual; Which values are displayed? ()A、46 and 45B、46 and 45.93C、50 and 45.93D、50 and 45.9E、45 and 45.93F、45.95 and 45.93

题目

Evaluate the SQL statement: SELECT ROUND(45.953, -1), TRUNC(45.936, 2) FROM dual; Which values are displayed? ()

  • A、46 and 45
  • B、46 and 45.93
  • C、50 and 45.93
  • D、50 and 45.9
  • E、45 and 45.93
  • F、45.95 and 45.93
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Evaluate the SQL statement:SELECT ROUND(TRUNC(MOD(1600,10),-1),2)FROM dual;What will be displayed? ()

A. 0

B. 1

C. 0.00

D. An error statement


参考答案:A

第2题:

Evaluate the SQL statement:What will be displayed?()

A. 0

B. 1

C. 0.00

D. An error statement


参考答案:A

第3题:

语句select ROUND(45.953,-1),TRUNC(45.936,2)from dual;的结果是()。

A.46 and 45

B.46 and 45.93

C.50 and 45.93

D.50 and 45.9


参考答案:C

第4题:

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

  • A、SELECT TO_CHAR(2000, '$#,###.##') FROM dual;
  • B、SELECT TO_CHAR(2000, '$0,000.00') FROM dual;
  • C、SELECT TO_CHAR(2000, '$9,999.00') FROM dual;
  • D、SELECT TO_CHAR(2000, '$9,999.99') FROM dual;
  • E、SELECT TO_CHAR(2000, '$2,000.00') FROM dual;
  • F、SELECT TO_CHAR(2000, '$N,NNN.NN') FROM dual;

正确答案:B,C,D

第5题:

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

  • A、SELECT TO CNAR(2000,  ‘$#,###.##’)   FROM dual;
  • B、SELECT TO CNAR(2000,  ‘$0,000.00’)   FROM dual;
  • C、SELECT TO CNAR(2000,  ‘$9,999.00’)   FROM dual;
  • D、SELECT TO CNAR(2000,  ‘$9,999.99’)   FROM dual;
  • E、SELECT TO CNAR(2000,  ‘$2,000.00’)   FROM dual;
  • F、SELECT TO CNAR(2000, ‘$N,NNN.NN’)   FROM dual;

正确答案:B,C,D

第6题:

Evaluate the SQL statement:SELECT LPAD (salary,10,*)FROM EMPWHERE EMP _ ID = 1001;If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()

A. 17000.00

B. 17000*****

C. ****170.00

D. **17000.00

E. an error statement


参考答案:D

第7题:

Evaluate the SQL statement: SELECT LPAD(salary,10,*) FROM EMP WHERE EMP_ID = 1001; If the employee with the EMP_ID 1001 has a salary of 17000, what is displayed?()

  • A、17000.00
  • B、17000*****
  • C、****170.00
  • D、**17000.00
  • E、an error statement

正确答案:E

第8题:

Evaluate the SQL statement:SELECT ROUND(45.953, -1), TRUNC(45.936, 2)FROM dual;Which values are displayed? ()

A. 46 and 45

B. 46 and 45.93

C. 50 and 45.93

D. 50 and 45.9

E. 45 and 45.93

F. 45.95 and 45.93


参考答案:C

第9题:

Which SELECT statement should you use to extract the year from the system date and display it in the format "1998"?()

  • A、SELECT TO_CHAR(SYSDATE,'yyyy') FROM dual;
  • B、SELECT TO_DATE(SYSDATE,'yyyy') FROM dual;
  • C、SELECT DECODE(SUBSTR(SYSDATE, 8), 'YYYY') FROM dual;
  • D、SELECT DECODE(SUBSTR(SYSDATE, 8), 'year') FROM dual;
  • E、SELECT TO_CHAR(SUBSTR(SYSDATE, 8,2),'yyyy') FROM dual;

正确答案:A

第10题:

The PRODUCTS table has these columns: PRODUCT_ID NUMBER(4) PRODUCT_NAME VARCHAR2(45) PRICE NUMBER(8,2) Evaluate this SQL statement: SELECT * FROM PRODUCTS ORDER BY price, product _ name; What is true about the SQL statement?()

  • A、The results are not sorted.
  • B、The results are sorted numerically.
  • C、The results are sorted alphabetically.
  • D、The results are sorted numerically and then alphabetically.

正确答案:D

更多相关问题