I have a table of connections which is stored, so i know component a connects to b etc.
what i have to do is give in a parameter so component f and find out every connection from that, that has no children so bassically the end node from that connection, there could be many.
Bare in mind this is a database with over 120,000 connections.
I did try using a cursor and a stored procedure but we soon reached the limit of 32 levels in sql.
So i believe cte's are what we would need, anyone any idea? cause its got everyone in the office stumped.
what i have to do is give in a parameter so component f and find out every connection from that, that has no children so bassically the end node from that connection, there could be many.
Bare in mind this is a database with over 120,000 connections.
I did try using a cursor and a stored procedure but we soon reached the limit of 32 levels in sql.
So i believe cte's are what we would need, anyone any idea? cause its got everyone in the office stumped.