• whly (5/16/2013)


    Well, these tables are in Data warehouse. They are not really linked via foreign keys.

    Thanks for your reply. What else would you recommend me to use?

    Understood. It sounded like you had a hierarchy going on and wanted to know what type because there are some pretty awesome solutions to report on sales for every node and all levels under each node for hierarchical data that's based on a parent/child relationship.

    You say you execute an SQL Task to get the managers first. Any chance of you posting that to see if I can help? Will likely need other information, as well, but that will be good as a starting point.

    --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)