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

Code Example 1

SELECT DISTINCT column1, column2, ...

 FROM table_name;

Code Example 2

SELECT DISTINCT ma_colonne
FROM nom_du_tableau

Code Example 3

SELECT DISTINCT Column_name FROM table_name;

Learn ReactJs, React Native from akashmittal.com