The only way would be to use a subreport.
In your main report you need to create the dynamic parameters based on the table mentioned. For the example we'll name them {?mdate1} and {?mdate2}.
Then in your subreport enter your SQL command, you'll need to create 2 parameters in your subreport too. We'll call these {?srdate1} and {?srdate2}. Where you've hardcoded dates in the SQL query replace with the corresponding parameter names, ie replace '2012-05-12' with {?srdate1}.
Now you've done that, you'll need to link your subreport to the main report so the dynamic parameters can be taken into consideration. Open the edit links dialog of your subreport and link {?srdate1} to {?mdate1} and {?srdate2} to {?mdate2}.
That should give you what you need, if you get stuck give me a shout.
Regards,
Ryan.