Their is one scenario : In which ID,Date time,NAME field is their.As shown id date_time NAME Final list 1 3/12/2014 4:00:05 1 3/12/2014 4:00:15 1 3/12/2014 4:00:05 1 3/12/2014 4:00:05 B 1 3/12/2014 5:00:05 A 1 3/12/2014 4:00:05 1 3/12/2014 4:00:05 1 3/12/2014 4:00:05 2 3/12/2014 4:08:05 2 3/12/2014 4:10:05 A 2 3/12/2014 4:00:05 2 3/12/2014 4:00:05 B 3 3/12/2014 4:00:05 3 3/12/2014 4:15:05 3 3/12/2014 4:00:05 B 3 3/12/2014 4:00:05 A Requirement: Final list field: It should show latest "NAME" for each id .As shown below: id date_time name Final list 1 3/12/2014 4:00:05 A 1 3/12/2014 4:00:15 A 1 3/12/2014 4:00:05 A 1 3/12/2014 4:00:05 B A 1 3/12/2014 5:00:05 A A 1 3/12/2014 4:00:05 A 1 3/12/2014 4:00:05 A 1 3/12/2014 4:00:05 A 2 3/12/2014 4:08:05 B 2 3/12/2014 4:10:05 A B 2 3/12/2014 4:00:05 B 2 3/12/2014 4:00:05 B B 3 3/12/2014 4:00:05 A 3 3/12/2014 4:15:05 A 3 3/12/2014 4:00:05 B A 3 3/12/2014 4:00:05 A A Thanks
↧