Database-Management-System
August 29, 2024Database-Management-System
August 29, 2024Database-Management-System
|
Question 659
|
Consider a database table R with attributes A and B. Which of the following SQL queries is illegal ?
|
SELECT A FROM R;
|
|
|
SELECT A, COUNT(*) FROM R;
|
|
|
SELECT A, COUNT(*) FROM R GROUP BY A;
|
|
|
SELECT A, B, COUNT(*) FROM R GROUP BY A, B;
|
Question 659 Explanation:
The aggregate functions can’t be used without Group By clause.
Common aggregate functions include : COUNT,AVG,MAX,MIN,SUM
Common aggregate functions include : COUNT,AVG,MAX,MIN,SUM
Correct Answer: B
Question 659 Explanation:
The aggregate functions can’t be used without Group By clause.
Common aggregate functions include : COUNT,AVG,MAX,MIN,SUM
Common aggregate functions include : COUNT,AVG,MAX,MIN,SUM
