The report should NOT show any repeated credit amounts in each income level. Which query would give the required result?
|
A.SELECT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers; B. SELECT DISTINCT cust_income_level, DISTINCT cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers; C.SELECT DISTINCT cust_income_level || cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers; D. SELECT cust_income_level || cust_credit_limit * 0.50 AS "50% Credit Limit" FROM customers; |
解析:
A. DISTINCT关键字只能出现在第一列之前。
B. 一个SELECT语句上只能出现一个DISTINCT关键字
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1157185/ ,如需转载,请注明出处,否则将追究法律责任。