sql group by on results grup by code example Example: select query group by name SELECT `gender` FROM `members` GROUP BY `gender`;