1select id from tbname
2
3where date between date_sub(now(),INTERVAL 1 WEEK) and now();
1SELECT sysdate() - 7; -- 1 week ago 12/01/2021 14:27:27
2SELECT date(sysdate() - 7); -- 1 week ago 12/01/2021 00:00:00
3
4SELECT * FROM my_table WHERE my_datecol > date(sysdate() - 7);