Hi guys i want to make fleet management program to cars in my organization but in erd diagram i face problem I have two table
Driver table
Diver No
Name
Address
Car No
Car table
Car No
Driver No
I want to make design many to many relationship means one car can driven by many drivers and one driver can drive more cars.
My question how i represent this relation in database and interface (meaning are i make table to driver and table to car only in case that relation is many t many or what i do )
Loading

Deepak VermaRank #672 · 3.6K reputationPosted Jan 22, 2014, 2:03 AM EST
I think, it's a good idea to keep DriverNo and CarNo columns Primary Key in Driver Table and Car Table respectively. And create a third table with columns DriverNo and CarNo (both as Foreign Key).
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 22, 2014, 2:25 AM EST
hi,
Many to many relation between entities or table can be acheive by introducing the one table
Like
Driver table
Diver No
Name
Address
Car table
Car No
DriverCarMapping Table
CarNo
DriverNo
hope this will help you.
ahmed saRank #8,218 · 226 reputationPosted Jan 22, 2014, 3:44 AM EST
ahmed saRank #8,218 · 226 reputationPosted Jan 22, 2014, 3:46 AM EST
ahmed saRank #8,218 · 226 reputationPosted Jan 24, 2014, 9:53 PM EST