Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8014977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:06:51+00:00 2026-06-04T20:06:51+00:00

Normally I can simply search google with a question and find an answer, but

  • 0

Normally I can simply search google with a question and find an answer, but I know literally not a single thing about mySQL databases, so I’m starting from scratch here.

My question is how to format/organize data that I have, when it isn’t as simple as a spreadsheet. The way I thought it would be formatted, would result in hundreds of thousands of individual tables, which doesn’t seem right. Here is the data I have, and maybe somebody could point me in the right direction as to how to organize it in a mySQL database so that it’s not only organized, but so it would be possible to generate reports based on each of the individual “points” of data:

I have scraped product reviews from specific URLs from a website, lets say Amazon for examples sake. I need to keep the reviews in the order they were left on Amazon.

To keep this simple, I’ll say I’ve scraped product reviews from three different URLs on Amazon:

http://amazon.com/product/12345-x
http://amazon.com/product/12345-y
http://amazon.com/product/12345-z

So from each of those three URLs, there were 3 different people on each URL that left a review. So how I thought it would be stored in a database (which can’t be right) would be like this:

          TABLE FOR PRODUCT 12345-X
REVIEW NUMBER    REVIEWER     THEIR REVIEW     NAME OF PRODUCT   PRODUCT PRICE   REVIEW LEFT ON
1                username     great product    some product      $399            monday
2                username     crappy product                                     wednesday
3                username     okay product                                       wednesday


          TABLE FOR PRODUCT 12345-Y
REVIEW NUMBER    REVIEWER     THEIR REVIEW     NAME OF PRODUCT   PRODUCT PRICE   REVIEW LEFT ON ON
1                username     great product    some product      $399            monday
2                username     crappy product                                     wednesday
3                username     okay product                                       wednesday


          TABLE FOR PRODUCT 12345-Z
REVIEW NUMBER    REVIEWER     THEIR REVIEW     NAME OF PRODUCT   PRODUCT PRICE   REVIEW LEFT ON ON
1                username     great product    some product      $399            monday
2                username     crappy product                                     wednesday
3                username     okay product                                       wednesday

Now since I’ve got the data for thousands of products, that would obviously result in thousands of tables, and that can’t be the right/best way to organize things.

To make things worse/more complicated, sometimes the same product has it’s price changed, so it’s sold at two different prices (actually, lots of different prices). I’d like to also be able to get an “average price” of each “same product” that’s been sold at more than one price, as well as display what day reviews are left most often as a whole & on a per product basis.

So you can see that I need to be able to generate reports not only on each product, but for then each “column” of data within each product…which would result in even more tables.

Can somebody point me in the right direction in how this data should be organized in a database?

I apologize if what I’m asking is too ridiculous to answer, I just don’t have even a clue as to how to organize this in a database, or even where to start (what phrase to type into google).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:06:54+00:00Added an answer on June 4, 2026 at 8:06 pm

    if I got you right you want to store threr diffent things:
    1 Products
    2 Reviews for each product
    3 Data of the person how rowted the review like name …

    so all you need are ther tables.

    TABLE FOR PRODUCT
    ProductID  P_Price   P_Name
    1          399       Name X
    2          299       Name y
    3          199       Name z
    
    TABLE FOR Review
    ReviewID  ProductID  Review            R_Date           UserID
    1         2          Review for y      1/1/2012         1
    2         1          Review for x      1/1/2010         2
    3         3          Review for z      4/4/2009         2
    
    
    Table for User
    UserID    U_Name
    1         Peter
    2         Simon
    

    So now you can e.g. see that Simon wrote a Rewiev for X and Z. And that each product has one review.
    In general, you do someting realy worng if you have to create a table during runtime. The Tabes are always a fix struktur that is only changed if you decide make some big changes, like adding a Password to each user.
    When u add a new information like a new review, u always only add one ore more entrys.

    I thing you should get a book or a long tutorial about MySQL (or wath ever you use) where hopfuly is a big chapter about data organisation.

    I hope I could help you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Normally, this is a trivial question that can be answered with a simple search
RUBY_PLATFORM is java either way. Normally I can do system checks with uname but
Normally I'm pretty competent with CSS but I just can't figure this one out...
This seems like a fairly straightforward question, but I couldn't find this particular use-case
I'm almost sure the answer is simply no, you can't do that. So I'm
My question: Can I simply ignore all of that nonsense of static, media, collectstatic
Normally I can simply click the maximize button of a QMainWindow to maximize it.
This is probably easy, but I couldn't find an answer anywhere. I'm filling a
I wanted to know how can I populate a ListBox dinamically. But I don't
I am new to Python and I did my search but I could not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.