the big O the big O - 1 year ago 59
MySQL Question

Get the result of following query:-

select sum(total1) + SELECT sum( total2 )
from balance WHERE id=( SELECT max(id)
FROM balance)


Can't seem to get it working

Answer Source

try

select sum(totalSEK) + MAX(id) As totalSum FROM balance;