|
-
recursion problem
I really need some help here.
I have a table [family] arent_name, my_name
and I want to pass 'adam' as a parameter and get the number of family members
down 3 generations
the data would be:
god, adam
adam, Michael
Michael, Lucifer
adam, john
John, Matthew
Matthew, David
David, Peter
Peter, Paul
Paul, Wendy
so 'Adam' has 5 members (3 levels deep, john&michael&Lucifer&Matthew&David),
David and his offspring are ignored.
and cannot understand 'books online' so am pretty much completly stuck.
If anyone can help I would really appreciate it
thanks in advance
Stephen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks