Table Length Question...

2010-03-30 Thread Steven Staples
Hi there, I currently store some information about a users daily habits in a table. The table has 4 fields per day, and another 4 fields as the keys. This table, depending on the month, can be from (4 keys + (28 days * 4 fields per day)) fields, to (4 keys + (31 days * 4 fields per day)) fields

RE: Table Length Question...

2010-03-30 Thread Gavin Towey
: Table Length Question... Hi there, I currently store some information about a users daily habits in a table. The table has 4 fields per day, and another 4 fields as the keys. This table, depending on the month, can be from (4 keys + (28 days * 4 fields per day)) fields, to (4 keys + (31 days * 4

Re: Table Length Question...

2010-03-30 Thread Chris W
Your first table layout is horrible, the second one is only marginally better. You should read up on database normalization. I have no idea what id, id2 and type are but since they seem like they are the same for every 'f' and every day, I am pretty sure they all relate directly to the user