xxxxxxxxxx
The SELECT DISTINCT statement is used to return only distinct (different) values.
Ex: select DISTINCT Country from TableName;
xxxxxxxxxx
-- returns only unique values
SELECT DISTINCT City FROM Customers;
-- Kindly upvote this answer if it helped you.
xxxxxxxxxx
SELECT DISTINCT column1, column1, .. FROM TABLE
/*DISTINCT WILL NOT SELECT THE SAME VALUES IN SAME COLUMN*/
xxxxxxxxxx
produces only one of two of the same data
returns only one of two of the same data