Zkuste toto:
select COALESCE(sum(balance),0) from mytable where customer = 'john'
To by mělo fungovat. Coalesce metoda by měla vrátit 0.
Zkuste toto:
select COALESCE(sum(balance),0) from mytable where customer = 'john'
To by mělo fungovat. Coalesce metoda by měla vrátit 0.