DNOETH, thanks for the update. It appears that I didn't explain what I was needing very well, so I will try to do so this time, as when I tried the above query, it provided an overall MAX DATE to all accounts.
Below is the data that I have:
ACCT -- CODE -- CHG DT -- CHRG -- ORD DUE DT -- RSN TXT -- ORD RSN CD
1598753 -- IPTV -- 6/1/2013 -- 5.00 -- 5/1/2013 -- Voluntary -- VA
1598753 -- IPTV -- 6/1/2012 -- 5.00 -- 5/9/2012 -- Voluntary -- VA
1598753 -- IPTV -- 2/1/2012 -- 5.00 -- 1/13/2012 -- Voluntary -- VA
1425410 -- IPTV -- 6/1/2013 -- 5.00 -- 5/19/2013 -- Voluntary -- VA
1425410 -- IPTV -- 2/1/2012 -- 5.00 -- 1/23/2012 -- Voluntary -- VA
1032045 -- IPTV -- 4/1/2013 -- 5.00 -- 3/3/2013 -- Voluntary -- VA
1032045 -- IPTV -- 8/1/2012 -- 5.00 -- 7/13/2012 -- Voluntary -- VA
1135015 -- IPTV -- 8/1/2013 -- 5.00 -- 7/28/2013 -- Voluntary -- VA
1135015 -- IPTV -- 1/1/2013 -- 5.00 -- 12/13/2012 -- Voluntary -- VA
1135015 -- IPTV -- 7/1/2012 -- 5.00 -- 6/7/2012 -- Voluntary -- VA
1135015 -- IPTV -- 4/1/2012 -- 5.00 -- 3/21/2012 -- Voluntary -- VA
The query provided worked, by picking up the MAXDATE of 7/28/2013, but applied it to all the accounts, since I didn't inform you that I needed the MAXDATE per each Account. My apologies. So what I am looking for is a query (what I currently have is still posted above) that will filter out the results so that it picks up the MAXDATE for each respective Account, where the results look something like this:
ACCT -- CODE -- CHG DT -- CHRG -- ORD DUE DT -- RSN TXT -- ORD RSN CD
1598753 -- IPTV -- 6/1/2013 -- 5.00 -- 5/1/2013 -- Voluntary -- VA
1425410 -- IPTV -- 6/1/2013 -- 5.00 -- 5/19/2013 -- Voluntary -- VA
1032045 -- IPTV -- 4/1/2013 -- 5.00 -- 3/3/2013 -- Voluntary -- VA
1135015 -- IPTV -- 8/1/2013 -- 5.00 -- 7/28/2013 -- Voluntary -- VA
Thanks again,
Charles
DNOETH, thanks for the update. It appears that I didn't explain what I was needing very well, so I will try to do so this time, as when I tried the above query, it provided an overall MAX DATE to all accounts.
Below is the data that I have:
ACCT -- CODE -- CHG DT -- CHRG -- ORD DUE DT -- RSN TXT -- ORD RSN CD
1598753 -- IPTV -- 6/1/2013 -- 5.00 -- 5/1/2013 -- Voluntary -- VA
1598753 -- IPTV -- 6/1/2012 -- 5.00 -- 5/9/2012 -- Voluntary -- VA
1598753 -- IPTV -- 2/1/2012 -- 5.00 -- 1/13/2012 -- Voluntary -- VA
1425410 -- IPTV -- 6/1/2013 -- 5.00 -- 5/19/2013 -- Voluntary -- VA
1425410 -- IPTV -- 2/1/2012 -- 5.00 -- 1/23/2012 -- Voluntary -- VA
1032045 -- IPTV -- 4/1/2013 -- 5.00 -- 3/3/2013 -- Voluntary -- VA
1032045 -- IPTV -- 8/1/2012 -- 5.00 -- 7/13/2012 -- Voluntary -- VA
1135015 -- IPTV -- 8/1/2013 -- 5.00 -- 7/28/2013 -- Voluntary -- VA
1135015 -- IPTV -- 1/1/2013 -- 5.00 -- 12/13/2012 -- Voluntary -- VA
1135015 -- IPTV -- 7/1/2012 -- 5.00 -- 6/7/2012 -- Voluntary -- VA
1135015 -- IPTV -- 4/1/2012 -- 5.00 -- 3/21/2012 -- Voluntary -- VA
The query provided worked, by picking up the MAXDATE of 7/28/2013, but applied it to all the accounts, since I didn't inform you that I needed the MAXDATE per each Account. My apologies. So what I am looking for is a query (what I currently have is still posted above) that will filter out the results so that it picks up the MAXDATE for each respective Account, where the results look something like this:
ACCT -- CODE -- CHG DT -- CHRG -- ORD DUE DT -- RSN TXT -- ORD RSN CD
1598753 -- IPTV -- 6/1/2013 -- 5.00 -- 5/1/2013 -- Voluntary -- VA
1425410 -- IPTV -- 6/1/2013 -- 5.00 -- 5/19/2013 -- Voluntary -- VA
1032045 -- IPTV -- 4/1/2013 -- 5.00 -- 3/3/2013 -- Voluntary -- VA
1135015 -- IPTV -- 8/1/2013 -- 5.00 -- 7/28/2013 -- Voluntary -- VA
Thanks again,
Charles