M
macroapa
HI have the following query (A) below and then query (B) which runs on
querys (A). What I would like to do is merge the 2 into 1. Is this
possible?
Thanks.
(A) - called CSRAvgStepTouc1
SELECT tblTouches08ProdAPA.level7, tblTouches08ProdAPA.workitemstepid,
tblTouches08ProdAPA.stepname, Count(tblTouches08ProdAPA.duration) AS
CountOfduration1
FROM tblTouches08ProdAPA
WHERE (((tblTouches08ProdAPA.TouchStart)<#11/1/2008#))
GROUP BY tblTouches08ProdAPA.level7,
tblTouches08ProdAPA.workitemstepid, tblTouches08ProdAPA.stepname
HAVING (((tblTouches08ProdAPA.level7)="Ray, Ray"))
ORDER BY tblTouches08ProdAPA.workitemstepid,
tblTouches08ProdAPA.stepname;
(B)
SELECT CSRAvgStepTouc1.stepname, Avg(CSRAvgStepTouc1.CountOfduration1)
AS AvgOfCountOfduration1
FROM CSRAvgStepTouc1
GROUP BY tblTouches08ProdAPA.level7,
tblTouches08ProdAPA.workitemstepid, tblTouches08ProdAPA.stepname
HAVING (((tblTouches08ProdAPA.level7)="Ray, Robin"))
ORDER BY tblTouches08ProdAPA.workitemstepid,
tblTouches08ProdAPA.stepname
GROUP BY CSRAvgStepTouc1.stepname;
querys (A). What I would like to do is merge the 2 into 1. Is this
possible?
Thanks.
(A) - called CSRAvgStepTouc1
SELECT tblTouches08ProdAPA.level7, tblTouches08ProdAPA.workitemstepid,
tblTouches08ProdAPA.stepname, Count(tblTouches08ProdAPA.duration) AS
CountOfduration1
FROM tblTouches08ProdAPA
WHERE (((tblTouches08ProdAPA.TouchStart)<#11/1/2008#))
GROUP BY tblTouches08ProdAPA.level7,
tblTouches08ProdAPA.workitemstepid, tblTouches08ProdAPA.stepname
HAVING (((tblTouches08ProdAPA.level7)="Ray, Ray"))
ORDER BY tblTouches08ProdAPA.workitemstepid,
tblTouches08ProdAPA.stepname;
(B)
SELECT CSRAvgStepTouc1.stepname, Avg(CSRAvgStepTouc1.CountOfduration1)
AS AvgOfCountOfduration1
FROM CSRAvgStepTouc1
GROUP BY tblTouches08ProdAPA.level7,
tblTouches08ProdAPA.workitemstepid, tblTouches08ProdAPA.stepname
HAVING (((tblTouches08ProdAPA.level7)="Ray, Robin"))
ORDER BY tblTouches08ProdAPA.workitemstepid,
tblTouches08ProdAPA.stepname
GROUP BY CSRAvgStepTouc1.stepname;