Transact-SQL: select distinct columns

By technese - Last updated: Monday, November 14, 2011 - Save & Share - Leave a Comment

T-SQL Syntax:

SELECT DISTINCT Column FROM TableName

SELECT COUNT(DISTINCT ColumnName) FROM TableName

Posted in Database • • Top Of Page