• I did something similar.. thanks a lotwhere cast((datediff (ss,BatchStartTime,BatchEndTime)) as decimal(8,0))/60.0 > 120