how to get the unique record with condition from a column in sql code example Example: distincct sql SELECT DISTINCT column1, column2, ... FROM table_name;