1. 程式人生 > >OCP-1Z0-051 補充題庫 第6題 SELECT查詢語句

OCP-1Z0-051 補充題庫 第6題 SELECT查詢語句

A.
SELECT cust_city, AVG(cust_credit_limit)
  FROM customers
 WHERE cust_city IN ('WASHINGTON', 'NEW YORK')
 GROUP BY cust_credit_limit, cust_city;
B.
SELECT cust_city, AVG(cust_credit_limit)
  FROM customers
 WHERE cust_city IN ('WASHINGTON', 'NEW YORK')
 GROUP BY cust_city, cust_credit_limit;
C.
SELECT cust_city, AVG(cust_credit_limit)
  FROM customers
 WHERE cust_city IN ('WASHINGTON', 'NEW YORK')
 GROUP BY cust_city;

D.
SELECT cust_city, AVG(NVL(cust_credit_limit, 0))
  FROM customers
 WHERE cust_city IN ('WASHINGTON', 'NEW YORK');