Hi,
I'm still feeling my way around SQL and need some assistance.
I have the following SQL below:
SELECT [All SOS with All CIDs].Date, [All SOS with All CIDs].SOS, sum([All SOS with All CIDs].Sumits) AS Submits INTO [Two Weeks]
FROM [All SOS with All CIDs]
WHERE ((([All SOS with All CIDs].Date) Between [Enter Start Date] And [Enter End Date]))
GROUP BY Date, SOS;
Basically, it helps me pull records within a certain date range.
How would I change this code if I want it to find records for the latest 14 days without having to put in dates? I just want it to return records from the latest 14 days.
I'm still feeling my way around SQL and need some assistance.
I have the following SQL below:
SELECT [All SOS with All CIDs].Date, [All SOS with All CIDs].SOS, sum([All SOS with All CIDs].Sumits) AS Submits INTO [Two Weeks]
FROM [All SOS with All CIDs]
WHERE ((([All SOS with All CIDs].Date) Between [Enter Start Date] And [Enter End Date]))
GROUP BY Date, SOS;
Basically, it helps me pull records within a certain date range.
How would I change this code if I want it to find records for the latest 14 days without having to put in dates? I just want it to return records from the latest 14 days.