Junction Tables

A

Andrew

The examples for handeling many to many relationships (Access 2007) show the
creation of a junction table that includes 2 primary keys in one table, how
is this done?
 
R

Rick Brandt

The examples for handeling many to many relationships (Access 2007) show
the creation of a junction table that includes 2 primary keys in one
table, how is this done?

No it contains ONE primary key consisting of multiple fields. Some of
those fields are foreign keys to one of the other tables and the others
are foreign keys to the remaining one.

Example...

Table1: PK=ID_1

Table2: PK=ID_2

Junction Table
Table3: PK= ID_1, ID_2
 
J

John W. Vinson

The examples for handeling many to many relationships (Access 2007) show the
creation of a junction table that includes 2 primary keys in one table, how
is this done?

It's *one* primary key consisting of two fields.

To create such a primary key, open the table in design view. Ctrl-click the
two (up to ten, actually) fields so they're both highlighted; then click the
Key icon on the toolbar.
 

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

Similar Threads


Top