Hi Bebe Try This out
SELECT testdate FROM tbltest WHERE DATEDIFF(hour,testdate,getdate()) <= 1
Or
SELECT testdate FROM tbltest WHERE DATEDIFF(minute,testdate,getdate()) <= 60
Hope This Helps
Ian
[Edited by Ianpbaker on 05-26-2000 at 08:55 AM]
|
Results 1 to 2 of 2
Thread: SQL Date function needed!!!Threaded View
|
Click Here to Expand Forum to Full Width |