This looks like group by
:
select SO, Customer, Product, Description, sum(Quantity), sum(Extension), Country
from t
group by SO, Customer, Product, Description, Country;
Note that quantity
looks strange. Numbers in SQL are not shown with leading zeros -- and numbers should be stored as numbers, not strings.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…