$ 0 0 This query for Approval process SELECT TOP 1 'TRUE' FROM OINV T0where DATEDIFF(day,$[$10.0], getdate()) < -1