Welcome Guest, Not a member yet? Register   Sign In
Little help with database design (ecommerce, mysql)
#9

[eluser]Dam1an[/eluser]
Well, you could have a common_fields table which has a row for everything, this covers things which every item will have (price and brand spring to mind)
You would then also have a common_fields table for each top level category, so you couold have tv_common_fields with size, res etc
When doing a query, you would need to join the global and category common field tables on the product ID

You can then just do a load of where clauses to get what you want


Messages In This Thread
Little help with database design (ecommerce, mysql) - by El Forum - 05-07-2009, 06:35 PM
Little help with database design (ecommerce, mysql) - by El Forum - 05-07-2009, 07:45 PM
Little help with database design (ecommerce, mysql) - by El Forum - 05-07-2009, 07:51 PM
Little help with database design (ecommerce, mysql) - by El Forum - 05-07-2009, 10:57 PM
Little help with database design (ecommerce, mysql) - by El Forum - 05-07-2009, 11:14 PM
Little help with database design (ecommerce, mysql) - by El Forum - 05-07-2009, 11:36 PM
Little help with database design (ecommerce, mysql) - by El Forum - 05-07-2009, 11:48 PM
Little help with database design (ecommerce, mysql) - by El Forum - 05-08-2009, 05:12 AM
Little help with database design (ecommerce, mysql) - by El Forum - 05-08-2009, 05:22 AM
Little help with database design (ecommerce, mysql) - by El Forum - 05-08-2009, 04:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB