Hi guys
I have the following problem, my data is organized someway like this:
SUBJECT DATE REPLY S1 2/2/2012 N S1 3/3/2013 Y S2 4/4/2014 Y S2 5/5/2015 N S3 6/6/2016 N S3 7/7/2017 Y S4 8/8/2018 Y S4 9/9/2019 N
I need a query that will give me the records with the most recent date that replied Y, meaning to look like either of these two outputs below:
SUBJECT DATE REPLY S1 3/3/2013 Y S3 7/7/2017 Y or SUBJECT DATE REPLY S1 2/2/2012 N S1 3/3/2013 Y S3 6/6/2016 N S3 7/7/2017 Y
Thanks a lot for all your help!
Sincerely,
Batta