See the Exhibit and examine the structure and data in the INVOICE table:@H_403_3@ Exhibit:@H_403_3@ @H_403_3@ Which two sql statements would executes successfully? (Choose two.)@H_403_3@ A. SELECT MAX(inv_date),MIN(cust_id) FROM invoice;@H_403_3@ B. SELECT MAX(AVG(SYSDATE - inv_date)) FROM invoice;@H_403_3@ C. SELECT AVG(inv_date) FROM invoice;@H_403_3@ D. SELECT AVG(inv_date - SYSDATE),AVG(inv_amt) FROM invoice;@H_403_3@ @H_403_3@ 答案: A,D@H_403_3@
@H_403_3@
二、题目翻译@H_403_3@
@H_403_3@
三、题目解析@H_403_3@
B选项不正确,SYSDATE - inv_date的结果是数字,这里AVG的结果就只有一条记录了,再求MAX,就没意义了,这句会报错。 C选面不正确,inv_date是日期类型,AVG求日期的平均值,会报错。
原文链接:https://www.f2er.com/javaschema/285555.html