Using CASE in UPDATE

suggest change

sample on price increases:

UPDATE ItemPrice
SET Price = Price *
  CASE ItemId
    WHEN 1 THEN 1.05
    WHEN 2 THEN 1.10
    WHEN 3 THEN 1.15
    ELSE 1.00
  END

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


CASE:
*Using CASE in UPDATE

Table Of Contents