the big O the big O - 4 months ago 11
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

try

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