I need to switch the info in two fields basically reverse the info. I have several hundred records to deal with. This needs to be done only when a third field is <null>
So its like this:
1) Switch COSTCODE and EQUIPMENT when EMPLOYEE is <NULL>
2) Then when EMPLOYEE is <NULL> change to '52001'...
Can't seem to get it to work , this is what I'm trying..
Insert into IM_ITEMFILE
(col1, col2, col3, col4, col5)
select col1, 'C52','52', col4, col5
from IM_ITEMFILE
result
Server: Msg 207, Level 16, State 1, Line 1
Invalid column name 'col1'.
Server: Msg 207, Level 16, State 1, Line 1
Invalid...
I need to duplicate 600 records in a data base table and make some changes along the way . Need some help on this. Basically select a table and all of its fields, duplicate the data to make new records except that two of the fields that have the same info in all of them , will be changed to have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.