Calculating MAX(DATE) for Value Groups Where Values Go Back and Forth
问题 I have another challenge that I am trying to resolve but unable to get the solution yet. Here is the scenario. Pardon the formatting if it messes up at the time of posting. ACCT_NUM CERT_ID Code Date Desired Output A 1 10 1/1/2007 1/1/2008 A 1 10 1/1/2008 1/1/2008 A 1 20 1/1/2009 1/1/2010 A 1 20 1/1/2010 1/1/2010 A 1 10 1/1/2011 1/1/2012 A 1 10 1/1/2012 1/1/2012 A 2 20 1/1/2007 1/1/2008 A 2 20 1/1/2008 1/1/2008 A 2 10 1/1/2009 1/1/2010 A 2 10 1/1/2010 1/1/2010 A 2 30 1/1/2011 1/1/2011 A 2 10