Hello all,
Please can anyone help me with designing a database schema that I am having some difficulties with?
What I have is a load of products that are offered by different shops, like a price comparison website. What I have at present is one table with a row for each product with the following columns:
shop, category, sub-category, productName, manufacturer, description, shopLink, price.
So when you choose a sub category to view ie shoes then all the shoes in the database under sub category shoes are shown on a webpage. In the current design you could then click the shoe name to take you to a page containing further information such as description, price and where you can buy the product.
This is all quite easy but what I ideally would like to do is that if I have the same shoes twice in the DB (different shops sell it) the link on the results page is only shown once and then the detailed page gives the generic description and the two diffent prices offered.
What normalization do I need on my data to enable me to link up a product (name & manufacturer) to many different shops and both with the same product description.
Any help is greatly appreciated.
Thanks all
Please can anyone help me with designing a database schema that I am having some difficulties with?
What I have is a load of products that are offered by different shops, like a price comparison website. What I have at present is one table with a row for each product with the following columns:
shop, category, sub-category, productName, manufacturer, description, shopLink, price.
So when you choose a sub category to view ie shoes then all the shoes in the database under sub category shoes are shown on a webpage. In the current design you could then click the shoe name to take you to a page containing further information such as description, price and where you can buy the product.
This is all quite easy but what I ideally would like to do is that if I have the same shoes twice in the DB (different shops sell it) the link on the results page is only shown once and then the detailed page gives the generic description and the two diffent prices offered.
What normalization do I need on my data to enable me to link up a product (name & manufacturer) to many different shops and both with the same product description.
Any help is greatly appreciated.
Thanks all