select (select count(*) from srv zt, z where zt.some_id = z.sid) + (select
count(*) from srv_arc yt, z where
yt.some_id = zsid) as total
from systables where tabid = 1;
Art
> select sum((select count(*) from srv zt, z where zt.some_id = z.sid
> union select count(*) from srv_arc yt, z where
[quoted text clipped - 14 lines]
> Informix-list@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list

Signature
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do those
opinions reflect those of other individuals affiliated with any entity with
which I am affiliated nor those of the entities themselves.
ian - 26 Aug 2008 13:30 GMT
Thanks Art
Talk about missing the bleedin obvious !