pool Posted September 10, 2008 Share Posted September 10, 2008 Hi all, I need to design such a report:- Report Title: Activities from start_date to end_date- Report details: Name , Activity_description , total number of those activities performed in the dates intervalThe problem I cannot solve is that start_date and end_date are stored in a parameters_table.So I have such a query:select Name , activity_description , count(*) from activitieswhere activity_date between parameters_table.start_date and parameters_table.end_dategroup by Activity_descriptionIn this way I don't have the fields start_date and end_date that I should use in the report title. I need one more query:select start_date , end_date from parameters_tableto define these fields. How may I do it?I cannot use parameters, because I need to schedule the report and I have no users to input parameters values; the dates interval must be stored in the parameters table.Thank you for your help.Andrea Link to comment Share on other sites More sharing options...
chenny Posted September 11, 2008 Share Posted September 11, 2008 Andrea,Just modify your sql query into query within query.Rgds Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now