what is the required t-sql for getting all the child categories in a parent category?
my table is like this : id | name | parentid
serkan sendur 821 Banned Featured Poster
Recommended Answers
Jump to Post— Ramy Mahrous 401SELECT dbo.Category.Name, dbo.Category.ID FROM dbo.Category LEFT OUTER JOIN dbo.Category AS Category_1 ON dbo.Category.ID = Category_1.ParentID WHERE (Category_1.ParentID IS NULL)
Jump to Post— Jx_Man 987absolutely RamyMahrous.
All 6 Replies
Ramy Mahrous 401 Postaholic Featured Poster
Jx_Man 987 Nearly a Senior Poster Featured Poster
serkan sendur 821 Banned Featured Poster
Ramy Mahrous 401 Postaholic Featured Poster
serkan sendur 821 Banned Featured Poster
serkan sendur 821 Banned Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.