I need two queries merged/combined

My preference is one query and not two, so I need someone to combine the query named _1 (which pulls SSNs from two different fields) and looks like this

SELECT NAMAST.SOC_SEC_NO_9 AS SSN
FROM MASTER_ALL INNER JOIN NAMAST ON (MASTER_ALL.APP = NAMAST.APP) AND (MASTER_ALL.ACCTNO = NAMAST.ACCTNO)
WHERE (((NAMAST.SOC_SEC_NO_9)<>0) AND ((MASTER_ALL.ALL_CUR_BAL_21)>0));

UNION SELECT NAMAST.SECOND_SSN_213 AS SSN
FROM MASTER_ALL INNER JOIN NAMAST ON (MASTER_ALL.ACCTNO = NAMAST.ACCTNO) AND (MASTER_ALL.APP = NAMAST.APP)
WHERE (((NAMAST.SECOND_SSN_213)<>0) AND ((MASTER_ALL.ALL_CUR_BAL_21)>0));

With this one (which for each SSN pulls a zip code from another table)

SELECT [_1].SSN, CIFHSHLD.CIFH_SEQ, CIFHSHLD.CIFH_ZIP
FROM (_1 INNER JOIN CIFMASTR ON [_1].SSN = CIFMASTR.CIFM_NBR) INNER JOIN CIFHSHLD ON CIFMASTR.CIFM_HSHLD_NBR = CIFHSHLD.CIFH_HSHLD_NBR
WHERE (((CIFHSHLD.CIFH_SEQ)=0))
K_DeutschAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PatHartmanCommented:
merged/combined - doesn't tell me what you want as the output.  Do you want to join the two queries?  Inner Join or Outer Join?  to add columns.   Or do you want to union the second query with the first to add rows.

To union the third query, add the SQL String into the first query but strip out the extra columns.  In a Union, all columns must align, query to query for all Selects in the Union.

Joining query1 to query2 gives you a third query but I don't know anything about your data so I don't know what type of join you would need.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
K_DeutschAuthor Commented:
Let's start over and see if this time I provide enough info to get to one query. See attached.
Sample-Table-Data.xlsx
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Our role isn't really to do it for you, but rather to help you do it yourself. Pat gave you some very good guidelines for a UNION query - try to put those together, and post back here with the results.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.