OK, I could not come up with a better subject, but here is what I need to do in transforming my data. I have been given data with one field having the values 1,2,3,4,5,6,9. All values that I expect, but they mean something different than I want, so I need to change things up a bit. Where they put 3 it should be 4, where they put 4 it should be 5, where they put 5 it should be 6 and where they put 6 it should be 3. Now, I know I can update this easily enough, but my question is this.
If I write
what is the order going to be? Will it update all of the 3s to 4s and then take all of the fours (old and new) and make them 5s and so on, or will it just update from the original value?
Thanks!
wb
If I write
Code:
update table
set field =
case
when 3 then 4
when 4 then 5
when 5 then 6
when 6 then 3
end
Thanks!
wb