?
Solved

Database Schema Sample for Price Comparison Website

Posted on 2016-10-24
2
Medium Priority
?
133 Views
Last Modified: 2016-11-12
Hi,

I am try to conceptualize database schema that will be used for website to show different products with price from multiple retailers.

Can you please show me sample schema how to support multiple prices/attributes for single product for multiple retailers?

Thanks a lot.
0
Comment
Question by:Imran Ali
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 2000 total points (awarded by participants)
ID: 41857619
basic structure would look something like this, fill in other attributes and assign data types according to the platform.

retailer (retailer_id number, retailer_name text, other attributes);

product(product_id number, product_name text, other attributes);

retailer_product(retailer_id number,product_id number, price number, other attributes);

FK between retailer_product and retailer and product tables.
1

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
In this article, we’ll look at how to deploy ProxySQL.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question