the big O the big O - 5 months ago 15
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;