I have an SQL script that selects everything from the current day.
SELECT [ClientID] from [logs] where Date > CONVERT (date, SYSDATETIME())
Date is a DateTime type.
How to get everything in the last 3 days? I suppose I need to subtract 3 days from the result of the SYSDATETIME() function, but how?
source share