I need to fetch top first row out of each duplicate set of records from table given below. I need to use this query in view
please no temp table as I have already done it by adding identity column and min function and group by. I need solution without temp table or table variable
This is just sample data. Original has 1000s of records in table and I need just result from top 1000 so can't use distinct
I am using SQL Server 2005
Thanks.