Ummmm - let me explain a bit more. When I saif the fields were the same, I
actaully meant the headings - the information in the fields is different.
Hope that clarifies things. Really, I just want all information from 2 tables
to show up in my query - not just the information that matches. Thanks again.
Say you have 2 records in T1 and 3 records in T2, you want the result
to have 5 records where all fields from T1 and T2 are shown, right?
Then you need a union query. The easiest way to do it is to create
two select queries, one for each table, T1 and T2, and then put the
columns in order so that the each column in your result corresponds to
a column in the other table. This is really confusing without an
example... so, say I have T1, and T2
T1(PersonID, FirstName, MI, LName, Address, City, State, ZipCode)
T2(PersonID, FirstName, LastName, Address1, City, Region, PostalCode,
PhoneNo)
basically, the only difference is T1 contains MI and T2 contains
PhoneNo. The rest of the differences are basically synonyms.
SELECT T1.PersonID, T1.FirstName, T1.MI, T1.LName AS LastName,
T1.Address, T1.City, T1.State, T1.ZipCode, Null As PhoneNo
FROM T1
UNION ALL
SELECT T2.PersonID, T2.FirstName, Null, T2.LastName, T2.Address1,
T2.City, T2.Region, T2.PostalCode, T2.PhoneNo
FROM T2;
Since for the columns that exist in one table but not in the other, I
had to alias them in the first select statement so the column counts
match in the two SQL statements.
HTH