SUM IN COLUMN IN SQL VIEW

A

antmorano

I HAVE A TOTALS QUERY THAT CALCULATES THAT AMOUNT OF RECORDS FOR TWO
DIFFERENT QUERIES. WHAT I NEED TO DO IS TOTAL THOSE TWO NUMBERS BUT I
GET A CIRCULAR REFERENCE ERROR. HERE IS THE SQL WITHOUT THE TOTAL
PART. ANY HELP WOULD BE GREATLY APPRECIATED

SELECT SUM([TOTALS]), "H&W UNDER" AS queryNumber
FROM [H&W UNDER AGE 65 RETIREE COUNT]
UNION ALL SELECT Sum([TOTALS]), "H&W OVER" AS queryNumber
FROM [>65 H&W TOTAL RETIREES]
ORDER BY queryNumber;

-AM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top