how to use the distinct keyword in sql server

how to use the distinct keyword in sql server

The SELECT DISTINCT statement is used to return only different values.

If you have multiple duplicate records in a table. While fetching such records, it makes more sense to fetch only those unique records instead of fetching duplicate records.

Example:

SELECT DISTINCT Country FROM Customer

2020-04-19