
The MySQL Workshop
By :

Working through the migration project, you have identified two date controls used to filter data. The existing code uses VBA to generate SQL statements for the date dropdowns. The generated SQL is filtered by the users' selections to extract a specific date range for the statistics and put the date lists in the dropdowns. You want to convert these queries to parameterized stored procedures.
In this activity, you will create a stored procedure to determine dates, generate a passthrough query, and assign it to both date dropdowns.
The code tagged as SQL 10
currently determines the range of dates and assigns them to both the Start Year and End Year dropdowns.
Note
Both the Start Year and End Year dropdowns will use the same passthrough, so it only needs to be generated once and assigned to both of them. Name the SQL file Create Procedure spDateRange_par.sql
.
Perform the following steps to complete...