I\'m using the following Postgresql select statement in a Crystal report as a SQL Command and it works beautifully. Now I want to change it so that it will use dates passed to i