I am trying to write a simple query in SQL Server (2005 express). The purpose is to only choose data between now and 7 days ago. I cannot seem to get the GETDATE function to work in this example... Any ideas?
**PS - The date time in the column is in EPOCH so I believe the issue may be stemming from here with the datatype...
Select * From TB_Data
where TB_Data.nDate <= GETDATE()-7)