多項(xiàng)選擇題哪兩個(gè)關(guān)于子查詢描述正確的()

A.一個(gè)子查詢能返回0或多行
B.只有二個(gè)子查詢能放在同一層
C.一個(gè)子查詢只能用于SQL查詢語句
D.子查詢可以出現(xiàn)在一個(gè)比較操作符的兩邊


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題查看表CUSTOMERS,SALES,和COUNTRIES,你需要生成一個(gè)報(bào)表用來顯示所有的城市名及相關(guān)的所有客戶(如果有)和銷售明細(xì)(如果有)。哪個(gè)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)

4.多項(xiàng)選擇題

查看表MARKS結(jié)構(gòu),哪個(gè)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


5.多項(xiàng)選擇題

查看表INVOICE的結(jié)果,哪兩個(gè)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