"Unix Timestamp = 1 1970 " MS SQL Server ( 7.0 ):
SELECT *
from NODE
where datediff(ss, dateadd(ss, Date, 'Jan 1, 1970'), getdate()) < 86400
The inner bracket adds the number of seconds until January 1, 1970 to get the date and time of the string in SQL server format, the outer bracket gets the number of seconds between this date and "now", and 86400 is the number of seconds in 24 hours. (But double check this is - I cannot debug it just now, and I may have a mixed order of param parameters.)
source
share