Link to home
Create AccountLog in
Avatar of babble324
babble324

asked on

Combining multiple queries

I run the following query on several tables.

SELECT DateSerial(Year([TicketDate]), Month([TicketDate]), 1) AS yyyymm, Count(CumulativeSumProblem.TicketNumber) AS CountOfTicketNumber, 
(Select Count(*) From CumulativeSumProblem As CS Where 
DateSerial(Year(CS.[TicketDate]), Month(CS.[TicketDate]), 1) <= DateSerial(Year(CumulativeSumProblem.[TicketDate]), Month(CumulativeSumProblem.[TicketDate]), 1) ) As CumulativeSum
FROM CumulativeSumProblem
GROUP BY DateSerial(Year([TicketDate]), Month([TicketDate]), 1);

Open in new window


Each table represents a different district/area; and I would like to combine the query results into one big query.

Sometimes I am trying to combine 2 query results, sometimes I combine 3 queries.

How do I go about combing such query results?

Thanks  

Ps. this is done in MS Access.
ASKER CERTIFIED SOLUTION
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of babble324
babble324

ASKER

Yes sir
"Yes sir" as in that's what you needed, or something else?

:)
That's what I needed. Thanks a lot!
Actually, since I need this data for an MS graph, is there a way you can have the query results be as following:

Date   RegionOne_Sums RegionTwo_Sums.

that way; the date column is a common factor.