Check out example codes for "select query group by name". It will help you in understanding the concepts better.

Code Example 1

SELECT `gender` FROM `members` GROUP BY `gender`;

Learn ReactJs, React Native from akashmittal.com