Hi all,
I am generating reports based on a sales history table. I need to get monthly totals for several things. Up till now, I've been creating 12 subqueries (one for each month), and then include them in another query to get all the information with one query.
But, I feel deep in my bones that there has to be a way to do this just with one query. Maybe using a
WHERE [date] IN(select.....) type of query.
I want the query to give me one total for all sales in Jan, Feb, etc.
Thanks for all input on this,
Jim
I am generating reports based on a sales history table. I need to get monthly totals for several things. Up till now, I've been creating 12 subqueries (one for each month), and then include them in another query to get all the information with one query.
But, I feel deep in my bones that there has to be a way to do this just with one query. Maybe using a
WHERE [date] IN(select.....) type of query.
I want the query to give me one total for all sales in Jan, Feb, etc.
Thanks for all input on this,
Jim