SQL SELECT DISTINCT Statement

Submitted by:Tim Kelly

Date added:17 December, 2011

Category:SQL

In a table, some of the columns may contain duplicate values. Sometimes you will need to list only the different (distinct) values in a table. The DISTINCT keyword can be used to return only distinct (different) values.

Tags: distinct

Code Snippet:

SELECT DISTINCT column_name(s)
FROM table_name
 
 

Comments