Computing.Net > Forums > Database > Using joins with Access

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Using joins with Access

Reply to Message Icon

Name: gfmonk
Date: April 7, 2009 at 15:46:24 Pacific
OS: Windows XP
Subcategory: Non-specific SQL code
Comment:

I have a database which is Oracle, with an Access front end. I'm trying to determine if I can join multiple tables into a single row. The tables are...

Table A Link Table Table B Table C

A! A1-B1 B1 C1

A1-B2 B2

A1-C1

Is there a way to join all of those tables into a single record so it would look like....

A1 B1 B2 C1

Thanks for the help!

Gary



Sponsored Link
Ads by Google

Response Number 1
Name: orange
Date: April 9, 2009 at 08:23:26 Pacific
Reply:

Are there some common fields in these tables?
You need a common field between pairs of tables in order to join.

For example
TblA Customer
TblB Order
TblC OrderDetails

TblA and TblB both have a field CustNo
TblB and TblC both have a field OrderNo

So you could have a "single record" from all 3 tables by using

SELECT TblA.field1, TblA.field2, ,TblA.field3....TblA.fieldx,
TblB.field1, TblB.fieldy , TblB.fieldz,
TblC.field1, TblC.field2, TblC.fieldk
Where
TblA.CustNo = TblB.CustNo AND
TblB.OrderNo = TblC.OrderNo


0
Reply to Message Icon

Related Posts

See More


Count function for excel ... Boot from EISA configurat...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Using joins with Access

New column in Access using macro www.computing.net/answers/dbase/new-column-in-access-using-macro/418.html

get the label from access table using VBA cod www.computing.net/answers/dbase/get-the-label-from-access-table-using-vba-cod/610.html

ACCESS Record Merge www.computing.net/answers/dbase/access-record-merge/293.html