I've always struggled a bit with database design but have decided to give it a go on the project I'm working on. I've read Alti's tutorial on normalisation.
I've got this far:
+---------------+ | Items | +---------------+ | ID | | Item | | Date&Price | | Change | | Count | +---------------+ +---------------+ +---------------+ | Items | | Prices | +---------------+ +---------------+ | ID |1--|--*| ID | | Item | | Price | | Change | | Date | | Count | +---------------+ +---------------+
I'm trying to log the price of each item every day. In the first one I'd have to add a new column every day, so have moved that into a separate table, is there anywhere to go from there or is that as far as I can (or need to) for such a small database?
I ask because in my second table it will end up being storing a new row for each item every day which could get quite large.
e.g.
ID Item change count ID Price date 1 Cheese 10 3 1 10 22/02/2012 2 Pizza 50 1 1 20 23/02/2012 1 30 24/02/2012 2 30 24/02/2012

New Topic/Question
Reply



MultiQuote





|