P
PC
I have a simple DB (1 Table). From this I want to extract Quarterly totals
based on 3 different criteria (i.e. totals for 3 locations). Currently I
have 3 seperate queries (1 for each location) which I would like to combine
into one query. The SQL view of one of the queries would be as follows:
SELECT "Qtr " & Format([Call_Date],"q") AS Period, Sum(tblCALLs.Cost) AS
[Totals For Dublin]
FROM tblCALLS
WHERE (((tblCALLS.TARGET_NUMBER) Like "1234*"))
GROUP BY "Qtr " & Format([Call_Date],"q")
ORDER BY "Qtr " & Format([Call_Date],"q");
all that would change between this and the other 2 queries would be the
criteria (i.e. LIKE 1234* would change to LIKE 4523* and Like 7567*)
The result would show the quartery totals for each location in the same
table.
Any help would be appreciated
pc..
based on 3 different criteria (i.e. totals for 3 locations). Currently I
have 3 seperate queries (1 for each location) which I would like to combine
into one query. The SQL view of one of the queries would be as follows:
SELECT "Qtr " & Format([Call_Date],"q") AS Period, Sum(tblCALLs.Cost) AS
[Totals For Dublin]
FROM tblCALLS
WHERE (((tblCALLS.TARGET_NUMBER) Like "1234*"))
GROUP BY "Qtr " & Format([Call_Date],"q")
ORDER BY "Qtr " & Format([Call_Date],"q");
all that would change between this and the other 2 queries would be the
criteria (i.e. LIKE 1234* would change to LIKE 4523* and Like 7567*)
The result would show the quartery totals for each location in the same
table.
Any help would be appreciated
pc..