Hi,
i have below table and the records are
ATN_No, ATN_Number, ATN_Date ,ATN_AstNo
1 A-1 01-01-2016 1
2 A-1 01-01-2016 2
3 A-2 02-01-2016 1
4 A-3 02-01-2016 2
i want below result depend upon ATN_Date and ATN_AstNo.
ATN_No, ATN_Number, ATN_Date ,ATN_AstNo
1 A-1 01-01-2016 1
2 A-1 01-01-2016 2
Thanks
Basit.

Catcher WongRank #286 · 8.8K reputationPosted Jan 22, 2017, 1:54 AM EST
Rathrola Prem KumarRank #307 · 8.2K reputationPosted Jan 22, 2017, 4:44 AM EST
select * from emp where empid not in ( select top ( (select count(*) from emp) - 2 ) empid from emp )Rafnas T PRank #280 · 8.8K reputationPosted Feb 21, 2017, 7:31 PM EST
Ramesh BarikRank #3,664 · 401 reputationPosted Mar 16, 2017, 9:37 PM EDT