Dynamically generate the queries to load a partitioned store_sales table...

....
I've changed the query to use between.