if ModelID is a primary key, you won't want to group on it (there's only going to be one of each, eh?) --
select Color, count(*) as subtotal
into
NameOfYourNewTable
from dbo.Inventory_Joins
group by Color
if ModelID is not the primary key, then yeah, add it into the above like this --
select ModelID, Color, count(*) as subtotal
into
NameOfYourNewTable
from dbo.Inventory_Joins
group by ModelID, Color
rudy
http://rudy.ca/