ID ID_Product ID_Request Status Category ID_Lab Created_ON 1 40 5 Clinic Requested Cat1 2 02-09-2015 08:00:00 2 40 5 Lab Request Cat1 2 03-09-2015 08:00:00 3 40 5 Started Cat1 2 04-09-2015 08:00:00 4 40 5 Completed Cat1 2 05-09-2015 08:00:00 5 41 5 Clinic Request Cat1 2 02-09-2015 08:00:00 6 41 5 Lab Request Cat1 2 03-09-2015 09:00:00 7 41 5 Started Cat1 2 04-09-2015 09:00:00 8 41 5 Cancelled Cat1 2 05-09-2015 09:00:00
ID_Request ID_Product Status Category ID_Lab Created_ON 5 40 Completed Cat1 2 05-09-2015 08:00:00 5 41 Cancelled Cat1 2 05-09-2015 09:00:00
select IDProduct , SelectedProd , Category , CreatedOn , Status from ProductStatusHistory where ID_Req=5 and CreatedOn=(select max(CreatedOn) from ProductStatusHistory)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)