it will be either of MuMu's suggestion or thisSELECT * FROM TABLE WHERE COLUMN >= DATEADD(dd,DATEDIFF(dd,0,GETDATE())-1,'04:00')AND COLUMN < DATEADD(dd,DATEDIFF(dd,0,GETDATE()),'04:00')
depending on whether you want records created at 04:00 AM today to be included or not------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs