Consider a database table ‘Knowledge’ with attributes a1, a2 and a3. Which of…

Consider a database table ‘Knowledge’ with attributes a1, a2 and a3. Which of the following SQL queries is INCORRECT?

  1. A.

    SELECT a1, a2,a3 , COUNT(*) FROM Knowledge GROUP BY a1, a2, a3;

  2. B.

    SELECT a1 FROM Knowledge;

  3. C.

    SELECT a1, COUNT(*) FROM Knowledge GROUP BY a1;

  4. D.

    SELECT a1, COUNT(*) FROM Knowledge;

Attempted by 658 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…