I have many union queries and I have no problem joining tables, however i experience trouble when I try the GROUP BY expression. I use two queries for this where I group by in the second. I know I shouldn't have to. My union query is:
select[Provider]
from Q_DoctorsFromInput
UNION ALL select [Provider Name]
from Q_DoctorsAll
ORDER BY [Provider];
I try this:
select[Provider]
from Q_DoctorsFromInput
UNION ALL select [Provider Name]
from Q_DoctorsAll
GROUP BY [Provider]
ORDER BY [Provider];
but it doesn't work? Any suggestions?
Thanks in advance for your time
"The greatest risk, is not taking one."
select[Provider]
from Q_DoctorsFromInput
UNION ALL select [Provider Name]
from Q_DoctorsAll
ORDER BY [Provider];
I try this:
select[Provider]
from Q_DoctorsFromInput
UNION ALL select [Provider Name]
from Q_DoctorsAll
GROUP BY [Provider]
ORDER BY [Provider];
but it doesn't work? Any suggestions?
Thanks in advance for your time
"The greatest risk, is not taking one."