Which two statements would execute successfully?

Examine the structure of the MARKS table: Exhibit: Which two statements would execute
successfully? (Choose two.)

Examine the structure of the MARKS table: Exhibit: Which two statements would execute
successfully? (Choose two.)

A.
SELECT student_name,SUM(subject1) FROM marks WHERE student_name LIKE ‘R%’;

B.
SELECT SUM(subject1+subject2+subject3) FROM marks WHERE student_name IS
NULL;

C.
SELECT SUM(DISTINCT NVL(subject1,0)), MAX(subject1) FROM marks WHERE
subject1 > subject2;

D.
SELECT student_name,subject1 FROM marks WHERE subject1 > AVG(subject1);



Leave a Reply 3

Your email address will not be published. Required fields are marked *


fatimaa

fatimaa

why A is wrong

Malvika

Malvika

Becuase, it gives an error of “not a single-group group function”.Which means we are treating the whole table as a single group without specifying group clause,so can use only 1 column.

helion

helion

ORA-00937: not a single-group group function
00937. 00000 – “not a single-group group function”