Hello! :)
I am trying to have SQL run automatic, by always selecting the last Saturday based on the current day.
So as of today (21st Aug), it would need to give me the filter applying to the 19th
The query below is how I run it as of now (manually always changing the date based on last saturday)
....
WHERE idq.snapshot_date = '2023-08-19'
....
thanksydpt