Changes between Version 3 and Version 4 of DodavanjeTransakcija


Ignore:
Timestamp:
12/16/24 22:01:38 (4 weeks ago)
Author:
211101
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DodavanjeTransakcija

    v3 v4  
    5353{{{#!sql
    5454UPDATE transaction_account
    55 SET balance = balance - 1500 + 200
     55SET balance =
     56    CASE
     57        WHEN transaction_account_id = 2 THEN balance - 1500
     58        WHEN transaction_account_id = 3 THEN balance + 200
     59        ELSE balance
     60    END
    5661WHERE transaction_account_id IN (2, 3);
    5762}}}