[sql] How to query for today's date and 7 days before data?