1When querying data from a table, you may get duplicate rows. In order to remove these duplicate rows, you use the DISTINCT clause in the SELECT statement.
2
3Here is the syntax of the DISTINCT clause:
4
5SELECT DISTINCT
6 select_list
7FROM
8 table_name;
1SELECT DISTINCT column1, column1, ..... FROM TABLE
2/*DISTINCT WILL NOT SELECT THE SAME VALUES IN SAME COLUMN*/