Can someone give me the tsql to find also the dates that lie inside the give from and to date.
select * from empc where
DateFrom >= p_todate AND DateTo <= p_todate
What I mean is that dates in between should also be captured (I do not want to use BETWEEN syntax)
please help
If you need to select all ranges that intersect the given range: