Get children of a parentID

  • Hello,

    I have a table with the following structure:

    MenuID(int) Menu(varchar) ParentID(int)

    How do get all children nodes of a given MenuID even the sub nodes

    Thanks

  • Please have a look at this link and see whether you may be able to adapt it to your situation.

    What you are probably looking for is a 'recursive CTE'.


  • Thank you so much.

    That solved it

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply