Hi,
I have a query which gives a result like this
field1 field2 field3 field4 field5
23 gfhf ghjj 5 49
23 ghf jkll 6 45
67 bnvn nmb 7 45
89 gfh hjj 8 78
89 gfhg hk 9 23
Here the first 2 and last 2 records are kind of same. I want only one based on field 4 and field 5. i.e whichever has the minimum value in field 4 and maximum in field 5.
I want the following result
field1 field2 field3 field4 field5
23 gfhf ghjj 5 49
67 bnvn nmb 7 45
89 gfh hjj 8 78
Thanks