PrepZone Logo
PrepZone
Back to Database

Database · Medium

Bulk update rows using CASE expressions.

DatabaseSQL QueriesSenior

Answer preview

One statement, one pass: a CASE expression inside SET computes a different multiplier per row, so there is no need for two UPDATEs.…