Hi All,
I create the temp table in my query. The temp table has a varchar column col1 which stores the data like
-N- NONE
-N- NONE
-N- NONE
*P* NONE
-N- NONE
-N- NONE
*F* NONE
I need to update the col2 (datatype bit) in the same table based on the data in col1.
If Col1 has *F* NONE or *P* NONE then col2 is 1
If col1 has -N- NONE then Col2 is 0
Can anyone tell me how to implement this change?
Thanks,
-techiPA
I create the temp table in my query. The temp table has a varchar column col1 which stores the data like
-N- NONE
-N- NONE
-N- NONE
*P* NONE
-N- NONE
-N- NONE
*F* NONE
I need to update the col2 (datatype bit) in the same table based on the data in col1.
If Col1 has *F* NONE or *P* NONE then col2 is 1
If col1 has -N- NONE then Col2 is 0
Can anyone tell me how to implement this change?
Thanks,
-techiPA