Today I was playing around with a way to dynamically pass begin and end dates to a query. I got this far, and got stuck.
Declare @StartDate Date, @EndDate Date S