I’m working on a shopping cart and my problem is, how should I design database for size selection for products? Tshirts can be “XL, L, M, S” etc. and shoes can be “36,37,38,39…blabla” Should I do just one size table or many tables for several types (tshirt, shoes etc.)?
Thanks in advance…
Item_id -> item table (say id = 1 -> tshirt. id = 2 -> shoes.)
So, your table would be
Then, on the page, just get your dropdown values as
Sequel syntax may vary in your flavour.