what is distinct code example
Example 1: what is distinct
Distinct: helps to displays the non duplicate
records when retrieving the records from a table.
SELECT DISTINCT FIRST_NAME FROM VISITORS;
Example 2: difference between unique and distinct
Unique: helps to ensure that all the values
in a column are different
Distinct: helps to remove all the duplicate
records when retrieving the records from a table.