This is my current result from MySQL table tbl_msresponse
MobileNo         Time                     Status
xxxxx69333       2019-09-15 13:11:54      FAILED 
xxxxx69333       2019-09-15 14:12:16      FAILED
xxxxx69333       2019-09-15 14:21:34      DELIVERED **<- this row required**
xxxxx88779       2019-09-15 13:11:54      FAILED **<- this row required**
xxxxx76555       2019-09-15 14:12:16      FAILED
xxxxx76555       2019-09-15 14:21:34      DELIVERED **<- this row required**
From the above I want
 MobileNo        Time                     Status
 xxxxx69333      2019-09-15 14:21:34      DELIVERED 
 xxxxx88779      2019-09-15 13:11:54      FAILED 
 xxxxx76555      2019-09-15 14:21:34      DELIVERED 
So, now I want only DELIVERED row. If there is no DELIVERED row, I want show only last FAILED row of MobileNo based on Time col. How can I achieve this in MySQL? 
 
     
     
     
     
    