I am trying to filter SQL database based on dates.
I only want to include data from last 7 Days (including today) = 1 Week.
I tried to use:
WHERE 'TransactionDate' >= DATEADD(day, -7, GETDATE());
and similar restrictions, but it doesn't work
Can someone help me to filter only rows which are inside last 7 days?
Would be much appreciated!