Introduction:
In this article I will explain how to write SQL query to use distinct keyword with Top statement in SQL Server.
In this article I will explain how to write SQL query to use distinct keyword with Top statement in SQL Server.
Description:
In
previous posts I explained Replace function, substring function to get particular part of string and
many articles relating to SQL
Server.
Now I will explain how to use distinct keyword with top statement in sql
server.
Generally
by using Distinct keyword we can get
distinct records from datatable that declaration will be like this