Which SQL statement returns a numeric value?()

题目
单选题
Which SQL statement returns a numeric value?()
A

SELECT ADD_MONTHS(MAX(hire_Date), 6) FROM EMP;

B

SELECT ROUND(hire_date) FROM EMP;

C

SELECT sysdate-hire_date FROM EMP;

D

SELECT TO_NUMBER(hire_date + 7) FROM EMP;

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Evaluate this SQL statement:What will happen if you remove all the parentheses from the calculation?()

A. The value displayed in the CALC_VALUE column will be lower.

B. The value displayed in the CALC_VALUE column will be higher.

C. There will be no difference in the value displayed in the CALC_VALUE column.

D. An error will be reported.


参考答案:C

第2题:

Evaluate the SQL statement:What is the result of the statement?()

A. The statement produces an error at line 1.

B. The statement produces an error at line 3.

C. The statement produces an error at line 6.

D. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all departments that pay less salary then the maximum salary paid in the company.

E. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less than the maximum salary in their department.


参考答案:E

第3题:

Evaluate the following SQL statement used to create the PRODUCTS table:Which statement is true regarding this command?()

A. It executes successfully but partition pruning cannot happen for this partition key.

B. It produces an error because the TOTAL_VALUE column cannot be used as a partition key.

C. It produces an error because compression cannot be used for the TOTAL_VALUE partition key.

D. It executes successfully but the values in the TOTAL_VALUE column would not be physically stored in the partitions.


参考答案:D

第4题:

You issue this statement:ALTER DATABASE BACKUP CONTROLFILE TO TRACE;  What does the statement generate?()

  • A、A text copy of the control file.
  • B、A binary copy of the control file.
  • C、A file containing a SQL statement which will re-create the database.
  • D、A file containing a SQL statement which will re-create the control file.

正确答案:D

第5题:

Which statements concerning the value of a member variable are true, when no explicit assignments have been made?()  

  • A、The value of an int is undetermined.
  • B、The value of all numeric types is zero.
  • C、The compiler may issue an error if the variable is used before it is initialized.
  • D、The value of a String variable is "" (empty string).
  • E、The value of all object variables is null.

正确答案:B,E

第6题:

Examine the structure of the EMPLOYEES and DEPARTMENTS tables:Evaluate this SQL statement:Which SQL statement is equivalent to the above SQL statement?()

A.

B.

C.

D.


参考答案:C

第7题:

Which kind of non-sourced UDF can be created so that it only returns a single value?()

A.Row

B.Table

C.Scalar

D.Column


参考答案:C

第8题:

You run the SQL Tuning Advisor (STA) to tune a SQL statement that is part of a fixed SQL plan baseline. The STA generates a SQL profile for the SQL statement, which recommends that you accept the profile. Which statement is true when you accept the suggested SQL profile?()

A. The tuned plan is not added to the SQL plan baseline.

B. The tuned plan is added to the fixed SQL plan baseline as a fixed plan.

C. The tuned plan is added to the fixed SQL plan baseline as a nonfixed plan.

D. The tuned plan is added to a new nonfixed SQL plan baseline as a nonfixed plan.


参考答案:C

第9题:

You issued the following statement:   SQL> ALTER SESSION SET NLS_LANG=FRENCH_CANADA.WE8ISO8859P1;   Which parameter is NOT overridden by using the above statement?()  

  • A、 the value of the NLS_LANGUAGE variable
  • B、 the value of the NLS_TERRITORY variable
  • C、 the value of the NLS_CURRENCY variable
  • D、the character encoding scheme used by the client application

正确答案:C

第10题:

Which three features work together, to allow a SQL statement to have different cursors for the samestatement based on different selectivity ranges?()

  • A、Bind Variable Peeking
  • B、SQL Plan Baselines
  • C、Adaptive Cursor Sharing
  • D、Bind variable used in a SQL statement
  • E、Literals in a SQL statement

正确答案:A,C,E

更多相关问题