views:

50

answers:

1

Suppose to have something like:

Top 10 Products (WK 51)

  1. Product1
  2. Product2
  3. ...
  4. Product9

What can be a good database structure to store weekly charts that allow easy post-processing analysis like a graph of chart positions for a certain productID?

+1  A: 
Table Chart:
    id int
    productid int
    rank int
    week datetime
    comments text

When querying, select by date range. In our workplace, we have a table we can join to with date information (weeks, minutes, intervals, seconds etc).

Josh Smeaton
i didn't understand the latter part of your sentence, can you detail it a bit? thank you
marco.ragogna