what is group by code example
Example 1: select query group by name
SELECT `gender` FROM `members` GROUP BY `gender`;
Example 2: what is group function in sql
--- GROUP FUNCTION | MULTI ROW FUNCTION | AGGREGATE FUNCTION
--- COUNT , MAX , MIN , SUM , AVG
Example 3: GROUP BY
SELECT <field1, field2, field3…>
FROM <table1_name>
WHERE <condition/expression>
GROUP BY <field1, field2, field3…>