Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Nested Coalescing possible in SQL?
lennart_at_kommunicera.umea.se (Lennart Jonsson) wrote in message news:<6dae7e65.0406031939.1ed5fa49_at_posting.google.com>...
and as you probably discovered already, it can be further simplified as
[...]
union all select d.nodeid, d.nodeid, (select count(1) from ancestor where nodeid = d.nodeid) as depth from data d where d.color is not null
[...]
/L Received on Fri Jun 04 2004 - 13:56:13 CDT