SELECT 
	
	alltable.ACTUAL_DEST as Lane,
	COUNT(*) AS Total_count,
	SUM(alltable.DivertStatus = 5) AS DestFull_count
	
FROM alltable
Where (alltable.t_stamp BETWEEN :starttime AND :endtime)
GROUP BY date(alltable.t_stamp),(alltable.ACTUAL_DEST)
