Table example for just 1 ID but there are thousands and thousands of records:
ID TERM CLASSNBR REASON DATE TIME
1 1106 4444 Enrl 05/01/2010 11:00:00
1 1106 4444 Drop 05/01/2010 11:50:00
1 1106 4445 Enrl 05/01/2010 12:01:00
1 1106 4445 Drop 05/01/2010 12:11:00
1 1106 4445 Enrl 05/01/2010 20:50:00
1 1106 4445 Drop 05/01/2010 21:50:00
1 1106 5555 Enrl 05/01/2010 12:01:00
1 1106 5555 Drop 05/01/2010 12:11:00
1 1106 5555 Enrl 05/01/2010 20:50:00
1 1114 6666 Enrl 01/10/2011 17:00:00
Results wanted:
1 1106 5555 Enrl 05/01/2010 20:50:00
1 1114 6666 Enrl 01/10/2011 17:00:00
Don't want the other records because the last record for the day was Drop for ID\Term\Class.
Help is very appreciated!
ID TERM CLASSNBR REASON DATE TIME
1 1106 4444 Enrl 05/01/2010 11:00:00
1 1106 4444 Drop 05/01/2010 11:50:00
1 1106 4445 Enrl 05/01/2010 12:01:00
1 1106 4445 Drop 05/01/2010 12:11:00
1 1106 4445 Enrl 05/01/2010 20:50:00
1 1106 4445 Drop 05/01/2010 21:50:00
1 1106 5555 Enrl 05/01/2010 12:01:00
1 1106 5555 Drop 05/01/2010 12:11:00
1 1106 5555 Enrl 05/01/2010 20:50:00
1 1114 6666 Enrl 01/10/2011 17:00:00
Results wanted:
1 1106 5555 Enrl 05/01/2010 20:50:00
1 1114 6666 Enrl 01/10/2011 17:00:00
Don't want the other records because the last record for the day was Drop for ID\Term\Class.
Help is very appreciated!