I have the following table:
DOA_MAINT
SR_NO ITEM LINE_NO TYPE
100 A10 1 98
100 A10 2 94
200 A20 1 77
200 A20 2 98
200 A20 3 56
I need to result as:
SR_NO ITEM LINE_NO TYPE
100 A10 2 94
200 A20 3 56
for every SR_NO, to bring one record based on LINE_NO field.