I have created the following statement to count unique records from a table in my database :
SELECT "A Review" AS [Work Stream], COUNT(1) AS PERSON_COUNT
FROM (SELECT DISTINCT
tblAReview.[Person ID]
FROM
[tblAReview]
)
I then repeat the statement, adjust (and union) to bring in all other work streams into the table.
What I need to do is add an extra column that brings in a figure from another query, for each work-streams. Is there an easy way to do this?
SELECT "A Review" AS [Work Stream], COUNT(1) AS PERSON_COUNT
FROM (SELECT DISTINCT
tblAReview.[Person ID]
FROM
[tblAReview]
)
I then repeat the statement, adjust (and union) to bring in all other work streams into the table.
What I need to do is add an extra column that brings in a figure from another query, for each work-streams. Is there an easy way to do this?