I'm designing a database and I've hit a spot where I'm not sure which is the preferable design, so I decided to get some input here.
The problem is that I have several repeating pieces of data for columns, along the lines of
page1:
aName, aSize, aColor
bName, bSize, bColor
cName, cSize, cColor
page2:
aName, aSize, aColor
bName, bSize, bColor
cName, cSize, cColor
etc.
So I could have a design like this:
[pageId] [aName] [aSize] [aColor] [bName] [bSize] [bColor] etc.
Or split it into rows
[pageId] [letter] [name] [size] [color]
The former is better for performance, while the latter appears more clean. Is there a better way to approach the problems than these two options? I'm working with PHP and MySQL, but I'm interested in any solutions regardless of platform.