Below are the list data.
Code ItemCount Type Amount ---------------------------------------- B001 1 Dell 10.00 B001 1
Please try:
SELECT Code, SUM(ItemCount) ItemCount, Type, SUM(Amount) Amount FROM YourTable GROUP BY Code, Type ORDER BY Code