If condition in SQL Server 2008

 update AccountHistory
 set amount = amount * -1
 where accounttype="Withdrawal";

Leave a Comment