Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

many to many relationship ?? 1

Status
Not open for further replies.

solo7

Technical User
Mar 14, 2001
243
0
0
NO
I want to create a Db to cross reference types of vehicle and the respective drivers. One driver can drive many types of vehicle and many vehicle types can be driven by one driver.

Is this the infamous many to many relationship ??

If it is then can someone point me in the right directon in designing a Db which can query all the drivers for a certain type of vehicle and catagorise all the vehicles a driver can drive.

Steady ... [thumbsup2]
 
You need to you 3 tables in this circumstance

Table 1 - Drivers
*Driver ID
Driver

Table 2 - Cars
*Car ID
Car

Table 3 - Xref
*Driver ID
*Car ID


* - indicates key fields

The Cars and Drivers tables both have a one to many relationship with the Xref table.

Hope this helps!
 
Thanks Matt
this does help as it keeps the answer in my limited skill range.

Cheers Steady ... [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top