1. 程式人生 > >【12c OCP】最新CUUG OCP-071考試題庫(50題)

【12c OCP】最新CUUG OCP-071考試題庫(50題)

table max structure ces 考試題庫 bject ocp 試題 null

50、(11-15)choose two

Examine the structure of the MARKS table:

Which two statements would execute successfully?

A) SELECT SUM(subjectl+subject2+subject3)

FROM marks

WHERE student_name IS NULL;

B) SELECT SUM(DISTINCT NVL(subject1,0)), MAX(subjectl)

FROM marks

WHERE subjectl > subject2;

C) SELECT student_name,subjectl

FROM marks

WHERE subjectl > AVG(subjectl);

D) SELECT student_name, SUM (subjectl)

FROM marks

WHERE student_name LIKE ‘R%‘;

Answer:AB

(解析:C 答案 where 子句中用到了 avg 函數,必須用 having;D 答案 student_name 沒有在 group by 子句中出現。

B 答案可以寫成如下方式運行:

SELECT SUM(DISTINCT NVL(comm,0)), MAX(sal)

FROM emp

WHERE sal > comm;

)

【12c OCP】最新CUUG OCP-071考試題庫(50題)