What is the use of “DISTINCT” in Sql Server?

“DISTINCT” keyword is used to remove the duplicate values in a given column.

Example

SELECT DISTINCT column_name From table

Leave a Reply

Your email address will not be published. Required fields are marked *