How i can sum this selects? I need sum t.value from one select and t.value from other
select t.value as OneValues, t.clock as time
from hosts h, items i, history_uint t
where i.hostid=h.hostid and t.itemid=i.itemid and i.hostid='223344' and t.itemid = '0223344'
select t.value as SecondValues, t.clock as time
from hosts h, items i,history_uint t
where i.hostid=h.hostid and t.itemid=i.itemid and i.hostid='112233' and t.itemid = '0112233'
JOIN
syntax. Easier to write (without errors), easier to read (and maintain), and easier to convert to outer join if needed.