select custid,sum(Special_Amount) as Special_Amount from tbl group by custid
select custid,sum(Special_Amount) as Special_Amount from tbl_temp group by custid
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)