單項選擇題查看表CUSTOMERS,SALES,和COUNTRIES,你需要生成一個報表用來顯示所有的城市名及相關(guān)的所有客戶(如果有)和銷售明細(xì)(如果有)。哪個FROM子句能得到需要的結(jié)果()

A.FROM.sales.JOIN.customers.USING(cust_id)FULL.OUTER.JOIN.countries.USING(country_id)
B.FROM.sales.JOIN.customers.USING(cust_id)RIGHT.OUTER.JOIN.countries.USING(country_id)
C.FROM.customers.LEFTOUTER.JOIN.sales.USING(cust_id)RIGHT.OUTER.JOIN.countries.USING(country_id)
D.FROM.customers.LEFT.OUTER.JOIN.sales.USING(cust_id)LEFT.OUTER.JOIN.countries.USING(country_id)


您可能感興趣的試卷

你可能感興趣的試題

3.多項選擇題

查看表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


4.多項選擇題

查看表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

5.多項選擇題

查看表PRODUCTS的LIST_PRICE和MIN_PRICE字段,哪兩個表達(dá)式能得到一樣的結(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)