1.

Is “GROUP BY” clause is similar to “ORDER BY” clause?(a) Yes(b) No(c) Depends(d) None of the mentionedI had been asked this question at a job interview.This question is from The order by Clauses in division Select Statement of MySQL

Answer»

Correct option is (b) No

For EXPLANATION I would say: “ORDER BY” clause is used for SORTING while “GROUP BY” clause is used for aggregation of FIELDS.



Discussion

No Comment Found

Related InterviewSolutions