sql - update column with condition from another column -


I am trying to update a column based on condition from the second column. Something like this, & gt;

Apparel App | SPV ID | SPV App

  | Test | | Test | | | | |    

Expected:

Apparel App | SPV ID | SPV App

Approved. | Test |

Approved. | Test |

Approved. | | Approved

Approved. | | Therefore, column 2 is not zero, update column 1, if column 2 is zero, then update column 1 and column 3.

Here is my code:

[APV AD] = When the [SPV ID] is tap, then 'Approved' (Aether app) = 'Approved', [Attar Date] = @Adit, [SPV App] Finally, where [Wear app] is zero "

On the scene I did not add another column called [Dress Date], assuming that in the scene That column is but it does not work, it's just Column Update 1 ... Do you have any suggestions about this problem?

Thanks in advance.

I can not follow your code because it uses separate column names from the description. However, the argument you want It is:

  Update your table set col1 = @ COL1, col3 = (when call2 = '' or call2 is zero then @col3 and colle 3 end);  < See the  case  details in / pre> 

else . This sets the value of the column automatically - so the value does not change. < / Div>

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -