Merging two tables

G

Guest

I have two tables, both with identical fields (imported from two
spreadsheets). Both tables have data in field1 (UserName); table 1 has data
in fields 2 - 6, whilst table 2 has data in fields 7 - 11

How do I merge the two tables togeather, so that record 1 contains the data
from fields 2 - 6 AND tables 7 - 11? (asuming that the UserName is identical?

Many thanks in advance
 
N

Neil Sunderland

Keith said:
I have two tables, both with identical fields (imported from two
spreadsheets). Both tables have data in field1 (UserName); table 1 has data
in fields 2 - 6, whilst table 2 has data in fields 7 - 11

How do I merge the two tables togeather, so that record 1 contains the data
from fields 2 - 6 AND tables 7 - 11? (asuming that the UserName is identical?

The SQL will be something like this:
SELECT
Username,
Field1, Field2, Field3, Field4, Field5, Field6,
Field7, Field8, Field9, Field10, Field11
FROM
Table1
INNER JOIN
Table2 ON Table1.Username = Table2.Username
 
G

Guest

--
Keith W


Neil Sunderland said:
The SQL will be something like this:
SELECT
Username,
Field1, Field2, Field3, Field4, Field5, Field6,
Field7, Field8, Field9, Field10, Field11
FROM
Table1
INNER JOIN
Table2 ON Table1.Username = Table2.Username

--
Neil Sunderland
Braunton, Devon

Please observe the Reply-To address

Neil, It worked a treat, and first time too.

Many thanks
 

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