Jump to content

Recommended Posts

Hi there.

 

I am creating an e-commerce website, in which the Supplier will have the option when listing his product i.e. a T-shirt listing.

 

The Supplier will have the option for specifying the QTY of a particular T-shirt available in size and color in his stock. For Example:

 

T-Shirt Variation        :      Qty

Small - RED              :        8

Medium - RED          :        5

Large - RED              :        7

 

Small - BLUE            :        4

Medium - BLUE          :        6

Large - BLUE            :        2

 

Small - GREEN          :        5

Medium - GREEN        :        3

Large - GREEN          :        6

 

Now I have a Product table that has the product details and I would like to know how I can design this table to hold these values.

 

Shall I create a Product table and then a Product_Variation table? and have some Foreign Key relationship? maybe One-to-One or Many-to-Many?

 

Kindly advice how I can design my database to hold this data.

 

Any comment/feedback is always welcome!

 

Best regards.

 

Thank you! :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.