Hello,
I know this should not be this tough but I can't seem to wrap my head around it. I am trying to remove duplicates but it is more than just that...
I have a result set of:
I'm trying to get the ID, name, setdate, expiredate and the max anotherdate plus the reason that goes with it. And to be honest...I can't even remember what I've tried at this point. Thanks for any help and don't be too harsh on me...
I know this should not be this tough but I can't seem to wrap my head around it. I am trying to remove duplicates but it is more than just that...
I have a result set of:
Code:
ID Name SetDate ExpireDate AnotherDate Reason
-------------------------------------------------------------------
21 test 2/16/2005 2/16/2008 6/17/2005 reason1
21 test 2/16/2005 2/16/2008 11/21/2005 reason2
21 test 2/16/2005 2/16/2008 1/08/2006 reason3
21 test 2/16/2005 2/16/2008 2/08/2006 reason2
I'm trying to get the ID, name, setdate, expiredate and the max anotherdate plus the reason that goes with it. And to be honest...I can't even remember what I've tried at this point. Thanks for any help and don't be too harsh on me...