the big O the big O - 1 year ago 85
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


select sum(totalSEK) + MAX(id) As totalSum FROM balance;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download