use group by and order by in sql code example
Example: group function in sql
--- GROUP FUNCTION | MULTI ROW FUNCTION | AGGREGATE FUNCTION
--- COUNT , MAX , MIN , SUM , AVG
--- GROUP FUNCTION | MULTI ROW FUNCTION | AGGREGATE FUNCTION
--- COUNT , MAX , MIN , SUM , AVG