• It doesn't sound like multiple databases would be the thing to do. It sounds like one database with some properly normalized tables would do.

    This also sounds like homework because no one in their right mind would assign this type of thing to a newbie and no newbie in their right mind would take such an assignment.

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