I need to run several begining/ending date parameter queries. All of the queries are on based on separate unrelated tables but for the same date range. I would like to be able to run a procedure to enter the begining and ending date parameters, one time and run all of the queries.
One of the queries is as follows:
SELECT inspections.inspection_type, Count(inspections.inspection_type) AS CountOfinspection_type
FROM inspections
WHERE (((inspections.inspection_date)>=[begining date] And (inspections.inspection_date)<=[ending date]))
GROUP BY inspections.inspection_type;
Thanks in advance for the help, GGuy
One of the queries is as follows:
SELECT inspections.inspection_type, Count(inspections.inspection_type) AS CountOfinspection_type
FROM inspections
WHERE (((inspections.inspection_date)>=[begining date] And (inspections.inspection_date)<=[ending date]))
GROUP BY inspections.inspection_type;
Thanks in advance for the help, GGuy