Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

plus or add balance in postgresql sql

v=# select sum(case when f < 0 then f end) n, sum(case when f >= 0 then f end) p from s170;
    n    |   p
---------+--------
 -768.27 | 340.61
(1 row)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #balance #postgresql #sql
ADD COMMENT
Topic
Name
8+9 =