I’ve got a #TempTble which looks like this:
Col1,Col2,5,8,19,....
Also, I have another table with description that matches the keys in #TempTble:
key Descr
=== ====
5 Descr1
8 Descr2
19 Descr3
Which is the best way to loop through the #TempTble and rename its columns with the matching descriptions so it looks like this:
Col1,Col2,Descr1,Descr2,Descr3,...
Thanks in advance.
1 Answer