•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Database Design section within the Web Development category of DaniWeb, a massive community of 428,235 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,301 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Database Design advertiser: Programming Forums
Views: 550 | Replies: 1 | Solved
![]() |
•
•
Join Date: Jul 2008
Posts: 33
Reputation:
Rep Power: 1
Solved Threads: 1
Hi,
I need a clue on how to design a Many to Many relational database.
For example, I have a products table and a supplier table.
each product can be supplied by many suppliers
each supplier can supply many products
how can I orgranise this data in the tables?
I'm using MySQL.
The only way I can think of now is to create a third table and store the relationships ie.
'product_supplier' table with 2 fields: product_id, supplier_id
Any better ideas to share?
Thanks in advance!
I need a clue on how to design a Many to Many relational database.
For example, I have a products table and a supplier table.
each product can be supplied by many suppliers
each supplier can supply many products
how can I orgranise this data in the tables?
I'm using MySQL.
The only way I can think of now is to create a third table and store the relationships ie.
'product_supplier' table with 2 fields: product_id, supplier_id
Any better ideas to share?
Thanks in advance!
![]() |
•
•
•
•
•
•
•
•
DaniWeb Database Design Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- travel sites link exchange (Relevant Link Exchanges)
- Travel and webmaster link exchange (Relevant Link Exchanges)
- Shopping, clothing, jewelry related active link exchange (Relevant Link Exchanges)
Other Threads in the Database Design Forum
- Previous Thread: Database schema for a store
- Next Thread: I can't stop thinking about inheritance!!


Linear Mode