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.
below is the result of second last record, what will be the query.
ATN_No, ATN_Number, ATN_Date ,ATN_AstNo
1 A-1 01-01-2016 1
2 A-1 01-01-2016 2
Thanks
Basit.