drop table #t
create table #t([Auto] int,[f_1] nvarchar(50),[f_2] nvarchar(50),[f_3] int);
insert into #t select 1,'"1"','"1"',1 
union all select 2,'"3"','"3"',2
union all select 3,'"2"','"2"',3
union all select 4,'"2"','"2"',4
union all select 5,'"5"','"5"',5
select * from #t
select * from (select min(Auto),f_1,f_2,SUM(f_3)As d from #t group by f_1,f_2)