database model tshirt sizes

From: NbForYou
Subject: database model tshirt sizes
Date: ,
Msg-id: BAY107-DAV1733CA91BFC0258E76EC46DBE50@phx.gbl
(view: Whole thread, Raw)
Responses: Re: database model tshirt sizes  (Patrick Hatcher)
List: pgsql-performance

Tree view

database model tshirt sizes  ("NbForYou", )
 Re: database model tshirt sizes  (Patrick Hatcher, )
  Re: database model tshirt sizes  (<>, )
  Re: database model tshirt sizes  ("NbForYou", )

Hello,
 
Does anybody know how to build a database model to include sizes for rings, tshirts, etc?
 
 
the current database is built like:
 
table product
=========
 
productid int8 PK
productname charvar(255)
quantity int4
 
 
what i want now is that WHEN (not all products have multiple sizes) there are multiple sizes available. The sizes are stored into the database. I was wondering to include a extra table:
 
table sizes:
========
productid int8 FK
size varchar(100)
 
 
but then i have a quantity problem. Because now not all size quantities can be stored into this table, because it allready exist in my product table.
 
How do professionals do it? How do they make their model to include sizes if any available?

pgsql-performance by date:

From: Andreas Pflug
Date:
Subject: Re: n00b autovacuum question
From: Chris Travers
Date:
Subject: Re: firebird X postgresql 8.1.2 windows, performance comparison