I have looked through a few posts but either there is too much information or I just don't quite understand what I am looking for. eg: How to get the first and last date of the current year?
In a table I have sales orders for the last 20 years, all I want is to show the orders from January 1st of three years before until whatever the current date is.
AND ShipDate >= (YEAR(ShipDate)-3)
Which doesn't work.
AND ShipDate >= DATEADD(YEAR,-2,GETDATE())
Which Shows exactly 2 years ago from whatever the current day is.
I want to be able to eventually create reports that show each year in the last three on their own but this is the first step and I am not doing well so far!