1. Home
  2. Data Science
  3. SQL for Data Analysis
  4. In SQL, the GROUP BY clause is used to:

Added 30 Nov -0001

In SQL, the GROUP BY clause is used to:

  1. filter individual rows by a condition
  2. sort the result set in ascending order
  3. aggregate rows that share a value into groups Correct answer
  4. join two tables on a common key

Correct answer

C. aggregate rows that share a value into groups

15 views

MCQSEXAM

Explanation

GROUP BY forms groups of rows with the same value, usually combined with aggregate functions.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More SQL for Data Analysis MCQs

Practise all SQL for Data Analysis MCQs

Similar MCQs