Multiple choice technology databases

select dummy,count(1) from dual group by dummy; O/p:

  1. Error: Not a GROUP BY Clause

  2. X,0

  3. X,1

  4. Two rows of value (X,0) & (X,1)

  5. No rows returned

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

DUAL contains exactly one row where DUMMY='X'. COUNT(1) counts the number of rows, which is 1. The GROUP BY clause is properly formed.