P
Public
Hi,
I am facing a problem of creating multiple aggregate functions in the same
query. What I want is like to get the number of courses for a certain month
and I have a field that gives me the date of a course. So what I am doing now
is creating a separate query for each month. For example for Jan I have like
Select Expr1: Count(CourseID) FROM Courses WHERE month(coursedate)=1. And
then another query for the Feb, Mar etc. Then I am combining all these months
into a single query and from this queryI am creating a report.
With this solution I am facing two problems:
1) I have to create a query for each and every month and then combine them
2) I want to show in the report, all the courses with their months, grouped
by year and I am not able to do so, since each month is coming from a
different query. The solution that have now, is to show the user a list of
years, he selects one and I am taking that year in query and I genrate report
based on that. (So I am only showing one year at a time)
Any ideas to solve any of these problems?
Regards
I am facing a problem of creating multiple aggregate functions in the same
query. What I want is like to get the number of courses for a certain month
and I have a field that gives me the date of a course. So what I am doing now
is creating a separate query for each month. For example for Jan I have like
Select Expr1: Count(CourseID) FROM Courses WHERE month(coursedate)=1. And
then another query for the Feb, Mar etc. Then I am combining all these months
into a single query and from this queryI am creating a report.
With this solution I am facing two problems:
1) I have to create a query for each and every month and then combine them
2) I want to show in the report, all the courses with their months, grouped
by year and I am not able to do so, since each month is coming from a
different query. The solution that have now, is to show the user a list of
years, he selects one and I am taking that year in query and I genrate report
based on that. (So I am only showing one year at a time)
Any ideas to solve any of these problems?
Regards