Check out example codes for "select count of distinct values sql". It will help you in understanding the concepts better.

Code Example 1

SELECT COUNT (DISTINCT column-name)  FROM table-name

Learn ReactJs, React Native from akashmittal.com