KelMan wrote:
Hello, yet another question...
Is there a way to get a hierarchy that is formulated by self join (like the EmployeeID->ReportsTo on Employees of Northwind) or do I have to generate it by using a loop?
I'm talking about using the Adapter template.
Thanx,
Manos
There are many different strategies for populating hierarchies, but the most common that I've run across is using recursion. It depends a lot on how big the tree or graph is, and how it will be used. So some questions for you to answer then are:
How many records (total) exist in this table that has the recursive relationship?
How will you present the data, and for what purpose? e.g. a tree that allows you to select a member of the hierarchy?
What technologies are you using at the presentation tier? e.g. ASP.NET/HTML, WinForms