I am trying to subtract 30 days from a date column in my database and use that as a condition in my where
but I can't get it to work
table example:
Fact_day |
---|
2022-05-20 |
2022-05-20 |
2022-04-15 |
2022-05-28 |
My trial:
where pr.fact_day between current_date and current_date - 30
Expected output is to get me all info in the rows that are 30 days before today's date