I am having trouble thinking of how I should build my simple database, its been about 3 years since I have done any sql dev which was back at uni so I have had habit of a brain fade.
I have two tables
- business
- customer
A customer can belong to many businesses and a business can have many customers.. so far I have created this as a database..
The Business table looks like this
- id
- name
- address
Customer table:
- id
- name
My question is how do I link these two together, how do i keep track of which customers are with which businesses so if a customer joins a business do I need a new table that is like business id and customer id??? I’m just a bit lost, hopefully you guys get what I am asking.
any help would be greatly appreciated.
if you want to link just two tables. the link to this question will be a fit for you: link two database tables