Recursively select records in single table when having main categoryid and textvalue of subcategory

  • Thanks all! I marked the answer to my original question as the solution. Seeing the simplicity of the query provided by AKIMwilliams I did end up making sure the slug_en column does not contain any duplicates.

    So thank you all again! 🙂

  • sqlserverstarter (8/17/2015)


    Thanks all! I marked the answer to my original question as the solution. Seeing the simplicity of the query provided by AKIMwilliams I did end up making sure the slug_en column does not contain any duplicates.

    So thank you all again! 🙂

    Hopefully that means that you put a unique constraint on the column.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)
    Intro to Tally Tables and Functions

  • I liked the non-duplicate solution

Viewing 3 posts - 16 through 17 (of 17 total)

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