how can Combine to output values. i have my Query below which 3 values under It.Finance…suppose high, medium and low..i want to combine medium and low together as average that means my output values could be
high
average(for medium and low)
select count(h.Dept_id) as DeptCount,
i.Id as CompanyId,
i.Account as AccountTotal,
i.Technology as IT,
ISNULL(it.Finance,'NoCapacity') as School
from Institution i left join
History h on h.Institution_id = i.Id left join
xxxxx
yyyyy
group by i.Id,i.Account,i.Technology,it.Finance
is it possible?
Best blind guess: