Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 path betwwen two nodes (Hierarchical Queries)

Author  Topic 

bee
Starting Member

1 Post

Posted - 2008-02-11 : 06:40:14
I need sql statement in sql server to print path between any of the two nodes.All node Elements and their respective parents are saved in a table.
Thanks in advance.


When you have nothing to Loose, You'll get everything you want

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-02-11 : 06:43:50
Cross post http://www.sqlservercentral.com/Forums/FindPost453786.aspx

As I said before, use a recursive CTE.
We can't help you further without knowing your table DDL.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -