I'm not that good, when it comes to SQL. I'm trying to get data from the last three weeks. I can get the current week number, but really don't know how to subtract it so that it goes three weeks back and takes all data from that period.
This is my current code. I can make it work with a fixed number (42 in this example), but that's not what I want.
And this is what the output should be: