Recursive queries?
From: SLE (info_at_NOSPAM.dataworx.be)
Date: 01/13/05
- Next message: SLE: "Best design practice"
- Previous message: Tedy Pranolo: "Re: What is the best way to query for used foreign key"
- Next in thread: anonymous_at_discussions.microsoft.com: "Recursive queries?"
- Reply: anonymous_at_discussions.microsoft.com: "Recursive queries?"
- Reply: Alex Papadimoulis: "RE: Recursive queries?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 Jan 2005 08:40:57 +0100
Hi there,
Categories are persisted in the following table. This illustrates that
categories can have child categories (or in other words categories can have
a parent category).
tblCategory
CatID int
CatName nvarchar(255)
CatParent int (nullable)
I need some generic T-SQL which will return all n-level categories.
Thanks,
-- SLE
- Next message: SLE: "Best design practice"
- Previous message: Tedy Pranolo: "Re: What is the best way to query for used foreign key"
- Next in thread: anonymous_at_discussions.microsoft.com: "Recursive queries?"
- Reply: anonymous_at_discussions.microsoft.com: "Recursive queries?"
- Reply: Alex Papadimoulis: "RE: Recursive queries?"
- Messages sorted by: [ date ] [ thread ]