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