i have a table in SQL Server 2008 which its name is Table1.
Table1 has a column named CreateDate which its data type is datetime.
Now, I wanna to get records that their createDate field values are more than for instance 1 hour.
i have a table in SQL Server 2008 which its name is Table1. Table1
Share
try with some datetime functions ,like DATEADD functions
e.g :
select dateadd(hh,-1,GETDATE())