selecting the totals is easy, right?
select ITEM, SUM(QTY)
from yourtable
group by ITEM
however, consolidating them and "leaving one row" is tricky
i suggest writing the total rows to a temporary table, deleting all rows from the original, then inserting the total rows back
create table temptable
( ITEM char(3)
, QTY integer )
insert into temptable
select ITEM, SUM(QTY)
from yourtable
group by ITEM
delete from your table
insert into yourtable
select * from temptable
drop temptable
rudy
http://rudy.ca/