select Job ,Name1_1 ,city1_1 , phone1_1from tableunion all select Job ,Name1_2 ,city1_2 , phone1_2from tableunion all select Job ,Name1_3 ,city1_3 , phone1_3from tableunion all select Job ,Name1_4 ,city1_4 , phone1_4from table
select jobs ,colA1 ,colB1 , colC1from #tempunion select jobs ,colA2 ,colB2 , colC2from #tempunion select jobs ,colA3 ,colB3 , colC3from #temp
select jobs ,colA1 ,colB1 , colC1from #tempunion allselect jobs ,colA2 ,colB2 , colC2from #tempunion allselect jobs ,colA3 ,colB3 , colC3from #temp