CASE Statements in A SQL UPDATE Query

  • UPDATE
  • [account]
  • SET
  • balance =
  • (
  • CASE
  • WHEN
  • ((balance - 10.00) < 0)
  • THEN
  • 0
  • ELSE
  • (balance - 10.00)
  • END
  • )
  • WHERE condition

Comments

Popular posts from this blog

DBA /BI Engineer Post

How to Fix ( Failed To Create A Phonebook Entry)