how to fetch unique records from a table code example
Example 1: distincct sql
SELECT DISTINCT column1, column2, ...
FROM table_name;
Example 2: sql find all different values in column
SELECT DISTINCT
column_name
FROM
table_name;
SELECT DISTINCT column1, column2, ...
FROM table_name;
SELECT DISTINCT
column_name
FROM
table_name;