ITPub博客

首页 > 数据库 > Oracle > Oracle Certificate Profession 1Z0-051-15

Oracle Certificate Profession 1Z0-051-15

原创 Oracle 作者:LuiseDalian 时间:2014-05-09 07:46:13 0 删除 编辑
(15)View the Exhibit and examine the data in the CUSTOMERS table.

Evaluate the following query:

SELECT cust_name AS "NAME", cust_credit_limit/2 AS MIDPOINT, MIDPOINT + 100 AS "MAX LOWER LIMIT" FROM customers;

The above query produces an error on execution. What is the reason for the error?

A. An alias cannot be used in an expression.

B. The alias NAME should not be enclosed with in double quotation marks .

C. The MIDPOINT+100 expression gives an error because CUST_CREDIT_LIMIT contains NULL values.

D. The alias MIDPOINT should be enclosed within double quotation marks for the CUST_CREDIT_LIMIT/2 expression .

答案:(A)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1157181/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6040880