Hello,
I have number of network status that comes sequentially per network ID order by time as per below data
I need to display only the latest status per network_id with the time associate with it.
however if per network_id there is status undelivered, i would like to the undelivered to be displayed regardless the rest of the status.
so the result as per below.
It seems simple, but it took me quite so long...
Appreciate for the help
I have number of network status that comes sequentially per network ID order by time as per below data
Code:
network_id Status_code status_time
1 sent 6/12/2015 15:58:25
1 delivered 6/12/2015 15:59:49
2 undelivered 6/12/2015 15:59:50
2 sent 6/12/2015 15:59:51
3 sent 6/12/2015 15:59:52
I need to display only the latest status per network_id with the time associate with it.
however if per network_id there is status undelivered, i would like to the undelivered to be displayed regardless the rest of the status.
so the result as per below.
Code:
network_id Status_code status_time
1 delivered 6/12/2015 15:59:49
2 undelivered 6/12/2015 15:59:50
3 sent 6/12/2015 15:59:52
It seems simple, but it took me quite so long...
Appreciate for the help