Answer the question
In order to leave comments, you need to log in
mysql. How to merge two forms of normalization?
Let's say there are tables
1. main, contains information about companies
id | name | address
2. first normalization table, contains the brands the company works with (one company - many brands)
brend_id | firm_id
3. second normalization table, contains the cities where the company operates (one firm - many cities)
town_id | firm_id
Which query can retrieve all companies for a certain brand and a certain city? While the idea came to mind to make the third normalization table
firm_id | brand_id | town_id
but confuses a big overhead
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question