單項選擇題

查看表PROMOTIONS結(jié)構(gòu),檢查下列SQL語句:

此SQL查詢在執(zhí)行時會生成一個錯誤。哪個是原因?qū)е逻@個錯誤()

A.WHERE
B.SELECT
C.GROUPBY
D.ORDERBY


您可能感興趣的試卷

你可能感興趣的試題

1.多項選擇題

查看表MARKS結(jié)構(gòu),哪個SQL語句能執(zhí)行成功()

A.SELECT.student_name,subject1.FROM.marks.WHERE-subject1>AVG(subject1)
B.SELECT.student_name,SUM(subject1)FROM.marks.WHERE-student_name-LIKE’R%’
C.SELECT.SUM(subject1+subject2+subject3)FROM.marks.WHERE-student_name-ISNULL
D.SELECT.SUM(DISTINCT.NVL(subject1,0)),MAX(subject1)FROM.mark.sWHERE-subject1>subject2


2.多項選擇題

查看表INVOICE的結(jié)果,哪兩個SQL語句能執(zhí)行成功()

A.SELECT.AVG(inv_date)FROM.invoice
B.SELECT.MAX(inv_date),MIN(cust_id)FROM.invoice
C.SELECT.MAX(AVG(SYSDATE-inv_date))FROM.invoice
D.SELECT.AVG(inv_date-SYSDATE),AVG(inv_amt)FROM.invoice

3.多項選擇題

查看表PRODUCTS的LIST_PRICE和MIN_PRICE字段,哪兩個表達式能得到一樣的結(jié)果()

A.NVL(NULLIF(list_price,min_price),0)
B.NVL(COALESCE(list_price,min_price),0)
C.NVL2(COALESCE(list_price,min_price),min_price,0)
D.COALESCE(NVL2(list_price,list_price,min_price),0)

4.多項選擇題

查看表INVOICE結(jié)構(gòu),下列哪個SQL語句能執(zhí)行成功()

A.SELECT.inv_no,NVL2(inv_date,’Pending’,’Incomplete’)FROM.invoice
B.SELECT.inv_no,NVL2(inv_amt,inv_date,’NotAvailable’)FROM.invoice
C.SELECT.inv_no,NVL2(inv_date,sysdate-inv_date,sysdate)FROM.invoice
D.SELECT.inv_no,NVL2(inv_amt,inv_amt*.25,’NotAvailable’)FROM.invoice