It's been a while since I last touched MySQL, but I'm now trying to figure out the best way to structure my database, plus I'm still a n00b at MySQL.
The database is going to be storing product details, which vary extremely from product to product, of four different products.
There is a little bit of overlap between one product and the other three, but almost zero overlap amongst the other three. This is due to the fact that the one product that overlaps with the other three has so many more data points than any other individual product.
Below is the inherent structure of the data -- aside from transaction info (e.g. price, type of transaction, shipping from, and the like) that will be common to all types of products -- whereby the letters represent product detail data points.
Product 1 | Product 2 | Product 3 | Product 4
----------+-----------+-----------+----------
A | A | |
B | B | |
C | C | |
D | D | |
E | E | E | E
F | F | F |
G | G | | G
H | | H |
I | | I |
J | | J |
K | | K |
L | | L |
M | | | M
N | | |
O | | |
P | | |
Q | | |
R | | |
S | | |
T | | |
U | | |
V | | |
W | | |
X | | |
Y | | |
Z | | |
AA | | |
BB | | |
CC | | |
DD | | |
EE | | |
FF | | |
GG | | |
HH | | |
II | | |
JJ | | |
KK | | |
----------+-----------+-----------+----------
I'm going to be displaying the posts chronologically by default. I'm also going to be implementing search, filter, and sort functionalities, so the structure has to be considerate of this.
Honestly I'm not sure what to do. Part of me is saying lump all of the products together into one table, but another part of me isn't so sure that's the most efficient approach.
Does anybody have any ideas or advice?