select * from RunInfo r , HealthChecks h where r.runid=h.runid and r.exetime >= DATEADD(day , -1, GETDATE())