B
bg_ie
Hi,
I have the following queries -
SELECT Count([tblTestScriptStatus].[StatusType]) AS Count1
FROM tblTestScriptStatus RIGHT JOIN tblTestCase ON
tblTestScriptStatus.ID = tblTestCase.TestScriptStatusID
WHERE (((tblTestScriptStatus.StatusType)="IMPLEMENTED"));
SELECT Count([tblTestScriptStatus].[StatusType]) AS Count2
FROM tblTestScriptStatus RIGHT JOIN tblTestCase ON
tblTestScriptStatus.ID = tblTestCase.TestScriptStatusID
WHERE (((tblTestScriptStatus.StatusType)="OK"));
SELECT Count([tblTestScriptStatus].[StatusType]) AS Count3
FROM tblTestScriptStatus RIGHT JOIN tblTestCase ON
tblTestScriptStatus.ID = tblTestCase.TestScriptStatusID
WHERE (((tblTestScriptStatus.StatusType)="PENDING"));
which are idenetical except for IMPLEMENTED, OK, and PENDING. What I'd
like to do is to combine these queries into one query giving the
following output table -
OK PENDING IMPLEMENTED
3 8 4
but I'm not sure how to go about it,
It would be even cooler if I didn't have to specify the status type
explicitly but could instead count the number of occurences for each
unique statusType in tblTestCase. For example, if I were to add the
status type "NOT OK".
Can you help?
Thanks for your help,
Barry.
I have the following queries -
SELECT Count([tblTestScriptStatus].[StatusType]) AS Count1
FROM tblTestScriptStatus RIGHT JOIN tblTestCase ON
tblTestScriptStatus.ID = tblTestCase.TestScriptStatusID
WHERE (((tblTestScriptStatus.StatusType)="IMPLEMENTED"));
SELECT Count([tblTestScriptStatus].[StatusType]) AS Count2
FROM tblTestScriptStatus RIGHT JOIN tblTestCase ON
tblTestScriptStatus.ID = tblTestCase.TestScriptStatusID
WHERE (((tblTestScriptStatus.StatusType)="OK"));
SELECT Count([tblTestScriptStatus].[StatusType]) AS Count3
FROM tblTestScriptStatus RIGHT JOIN tblTestCase ON
tblTestScriptStatus.ID = tblTestCase.TestScriptStatusID
WHERE (((tblTestScriptStatus.StatusType)="PENDING"));
which are idenetical except for IMPLEMENTED, OK, and PENDING. What I'd
like to do is to combine these queries into one query giving the
following output table -
OK PENDING IMPLEMENTED
3 8 4
but I'm not sure how to go about it,
It would be even cooler if I didn't have to specify the status type
explicitly but could instead count the number of occurences for each
unique statusType in tblTestCase. For example, if I were to add the
status type "NOT OK".
Can you help?
Thanks for your help,
Barry.