I have doubt in sql server 2008 .
1. Duplicate records remove problem.
ID Name Category
1 AAAA Male
2 BBBB Female
1 AAAA Male
1 AAAA Female
2 BBBB Female
2 BBB12 Female
In above table there is no Identity Column.
How to remove the duplicate values in single query ....
Output :
Like this;
1 AAAA Male
2 BBBB Female
1 AAAA Female
2 BBB12 Female..
2. Top
I have using Top statement in sql server 2008.
If i have using SELECT TOP(1) Column name from Table Name
it displays Single value .
suppose if i have using SELECT TOP(5) Column name from Table Name
it displays Five Records .
I want to get 5th record only using TOP statement . Is it possible in sql server 2008.
Thanks & Regards
Narayanan P