What do you need that c.u.r.s.o.r. for?
Unless I'm missing something, the following statement should do it:
UPDATE #mytable
set permitnum =
case
when id = 1 then permit1
when id = 2 then permit2
when id = 3 then permit3
...
END
Lutz
A pessimist is an optimist with experience. How to get fast answers to your question[/url]
How to post performance related questions[/url]
Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]