Viewing 3 posts - 1 through 3 (of 3 total)
To compare dates in T-SQL use DATEDIFF function and you won't need to warry about the time part.
Select *
FROM tablename
WHERE DATEDIFF(day, '1/1/2005’, datefield) >...
May 5, 2005 at 11:52 pm
#557271
Hi Henk
You can try this option. It should be faster as Join is more efficient then Where condition.
select a.*
from YOURTABLE a
left outer...
December 21, 2004 at 9:29 pm
#534708
Hi Dan, this question appears to be fairly common with no easy answer due to limitations of UDF.
Try this script below, hopefully it will do what you want.
December 20, 2004 at 11:02 pm
#534561