Hi Revraz, thanks for reply.
Middle table contains product_id, table_name and table_id. (Table_name is name of other table, like countries or options)
For example if a product_id 7 exists in USA, CANADA, INDIA, CHINA (these countries have IDs like; 1, 2, 3, 4 respectively)
and options are OPTION-1, OPTION-2, OPTION-3 (these options have IDs like; 1, 2, 3 respectively) then Middle table is like:
Middle-table:
product_id
table_name
table_id
7
countries
1
7
countries
2
7
countries
3
7
countries
4
7
options
1
7
options
2
7
options
3
I am not sure, if my database design is correct or not..... If it is not correct can you please guide me?
Actually each product have multiple countries, and multiple options.... that's why i design like this.
Regards,
Burhan Khan