create table #test1(id int,name varchar(20), Q1 int, Q2 int, Q3 int, Q4 int) insert into #test1 values(1,'a',1000,2000,4000,5000)--insert into #test values(2,'b',3000,3500,4200,5500) select * from #test1 select profilefrom#test1unpivot(profilefor qua