Home > Interview Questions > SQL Server > What is the use of DISTINCT keyword in SQL server?

What is the use of DISTINCT keyword in SQL server?

by Narain Siddharth   on 09/02/2011   Category: SQL Server   |  Level: Beginner   |  Views: 1226    |  Points: 25     |  Silver 


DISTINCT is used to retrieve the records without duplicate values, returns only the distinct values from the specific table. Find the below syntax for DISTINCT keyword.
select distinct columname1,columname2 from tableName



« Use of DataSet.AcceptChanges in ADO.NET?
» What is the use of GACUTIL.EXE tool in .NET?
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts