Replace the table name...
EstablishmentTra???
with it's actual name and I suspect this will get you where you wanted to go.
Main Topics
Browse All TopicsDoing a join and the query is not displaying the data as how i expect when handling missing data - please c attached doc. I have attached the tables and query and how i expect the data to display
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can include as many tables in a UNION query as you like although it's not generally referred to as Joining tables - that's actually something different. The requirement to make the queries work together in a UNION query is that each query must have the same structure....
SELECT Field1, Field2, Field3 FROM Table1;
UNION
SELECT Field1, Field2, Field3 FROM Table2;
UNION
SELECT Field1, Field2, Field3 FROM Table3;
If the number of fields in one query increases the number of columns to be displayed then all queries must have a new column added to match even if that column appears as a simple NULL, (ie:...
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table1;
UNION
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table2;
UNION
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table3;
UNION
SELECT Field1, Field2, Field3, Field4 FROM Table4;
Perhaps this will help. Write up each query with the QBE grid one table at a time - make sure they all have the same number of columns. Then stack the SQL code from each query, one on top of the other separated by UNION....
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table1;
UNION
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table2;
UNION
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table3;
UNION
SELECT Field1, Field2, Field3, Field4 FROM Table4;
Each line above and below UNION is a separate query, UNION just glues them all together. One thing you may ultimately need to consider is that UNION will collaps any dupliate rows into a single row. Doesn't sound like that will happen in this case but if it did and that was not what you wanted then you'd just change UNION to read UNION ALL.
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table1;
UNION ALL
SELECT Field1, Field2, Field3, NULL as Field4 FROM Table2;
Business Accounts
Answer for Membership
by: momi_sabagPosted on 2008-07-27 at 00:01:37ID: 22097504
try
select t1.*, t2.*
from Tran t1 full outer join Estab t2
on t1.TDate = t2.EDate
and t1.TValue = t2.EValue
and t1.TType = t2.EType
is that what you wanted ?