Check out example codes for "Db sql make a list of all possible values of a column". It will help you in understanding the concepts better.

Code Example 1

SELECT DISTINCT column1, column2, ...
FROM table_name;

Learn ReactJs, React Native from akashmittal.com