Hi, I'm trying to produce a stored procedure or function which would allow
me to fetch tree data stored in a table.
Records of this table looks like:
Id | ParentId | Value1 | Value2....
What I want to do is to fetch some rows starting from an Id number and using
this number as ParentId to get child rows recursively to produce single list
of rows. Is there is a way to join (union) cursors taken from subsequent
function calls to fetch their records somehow? I was also thinking about
using temporary table but if there's a simpler way, please let me know

.
Thanks,
wish