1
2
select * from table
where daterec is not null and DATEDIFF(d, daterec ,getdate()) in (5,12)
origin - https://www.pipiscrew.com/?p=14934 datediff-with-in-operator
1
2
select * from table
where daterec is not null and DATEDIFF(d, daterec ,getdate()) in (5,12)
origin - https://www.pipiscrew.com/?p=14934 datediff-with-in-operator