हिंदी

Differentiate between order by and group by command.

Advertisements
Advertisements

प्रश्न

Differentiate between order by and group by command.

अंतर स्पष्ट करें
Advertisements

उत्तर

Basis of Difference ORDER BY GROUP BY
Purpose Sorts result rows Forms groups of similar values
Main use Ascending or descending arrangement Aggregate calculations by group
Common functions Not necessary Used with SUM(), COUNT(), AVG() etc.
Result Ordered rows One result row per group
Example ORDER BY price DESC GROUP BY scode
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 10: Structure Query Language - EXERCISE [पृष्ठ १९७]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
अध्याय 10 Structure Query Language
EXERCISE | Q 18. | पृष्ठ १९७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×