In this article I will explain how to use distinct keyword with Top statement in SQL Server.
SELECT DISTINCT
EmpId,EmpName,Roles
FROM EmployeeDetails
|
SELECT DISTINCT TOP 10 * FROM EmployeeDetails
|
SELECT DISTINCT TOP 10 EmpId,EmpName,Roles FROM
EmployeeDetails
|
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
Subscribe by RSS
Subscribe by Email
0 comments :