506 views
0 votes
0 votes

Which of the following statements about SQL queries is true?

  1. The GROUP BY clause has nothing to do with Aggregate functions.
  2. The GROUP BY clause can only be used when Aggregate functions are used.
  3. Aggregate functions can only be used when the GROUP BY clause has been used.
  4. The GROUP BY clause can be used even when Aggregate functions are not used.

2 Answers

0 votes
0 votes
iv.

with group by clause , we can use an aggregate function as well as column also on which we have performed grouping  as select statement
0 votes
0 votes
normally GROUP BY clause is used with Aggregate function. However GROUP BY clause can be used without aggregate function also. hence the option IV is correct.

Related questions

0 votes
0 votes
1 answer
1
SPluto asked May 2, 2019
612 views
Let L1 and L2 be 2 languages which are not regular. Which of these is true?The union of L1 and L2 is not regular.The intersection of L1 and L2 is not regular.Both I and I...
0 votes
0 votes
0 answers
2
1 votes
1 votes
1 answer
4