I need to pull data for the same timeframe but with different dates. In the simplest form, what I have been doing is
SELECT * FROM table
WHERE organization='ABC' AND
starttime between '09-15-2022 08:00:00' and '09-15-2022 17:00:00'
I would like to pull all the date for 9/12, 9/13, 9/14 as well. Is there anyway I can do that in one script? I have just been copy pasting my code and changing the dates but it gets very tedious and (somewhat) time-consuming since I have to export the report and condense all of the dates into one spreadsheet.