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
Postaholic
Banned
Recommended Answers
Jump to PostSELECT 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 Postabsolutely RamyMahrous.
All 6 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
serkan sendur
821
Postaholic
Banned
Ramy Mahrous
401
Postaholic
Featured Poster
serkan sendur
821
Postaholic
Banned
serkan sendur
821
Postaholic
Banned
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.