Apologies if this has been asked, I have had a look. I "learnt" SQL in March, by that I went on a one day course.
I current have a set of data that when extracts looks like
Pay Ref AHRA ABA DATE ANC DESCRIPTION SEQUENCE NUMBER
12345 4/3/2022 12:00:00 AM General Needs accounts 50
12345 4/3/2022 12:00:00 AM Working Age Claimants 45
12345 4/3/2022 12:00:00 AM All Accounts 40
12345 4/3/2022 12:00:00 AM No Benefits Direct 35
12345 4/3/2022 12:00:00 AM Current Rent Accounts 30
What I would to extract from SQL Developer is the above where the Sequence Number is the lowest. From the above I would want
12345 4/3/2022 12:00:00 AM Current Rent Accounts 30
So for each Pay Ref, I want to extract the pay ref but only with the minimum sequence number. Hoping that that makes sense.
Thanks.