Posted by Jens on 10/01/74 11:45
Use the dateadd (Or Datediff) for that: hit_date >= DATEADD(d,-2,GETDATE()), keep in mind that this will substract the days including the current time, so a 04/19/2006 1:09 will result in 04/17/2006 1:09. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de ---
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming