Wednesday, March 7, 2012

hierarchical trees

Hi all and thanx in advance...

There is a command in Oracle which is "connect by prior" and i think it's a function to build "hierarchical trees", so where can I find the source of this function, or if anybody knows it please tell me...

What i mean is there would be an SQL function before "connect by prior" function written...

Example... I can write a function called called sub

function sub(x,y)
{
Z= X - Y
return z
}

So and then in my program i can use z=sub(5,3) instead of z=5-3, i think connect by prior is same thing but of course longer coding....
Where can i get this code?Next MSSQLSERVER version will have ANSI resursive join implemented (maybe).
See http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20514065.html
for hints and resources where to start.

Good luck !

No comments:

Post a Comment