• To be crystal clear, would you ever have data like the following where a given single product appeared in the CSV of more than 1 product category? I ask because this WILL cause a partial Cartesian Product and THAT will determine the "best" way to handle the tables as they currently exist.

    1 canola,tea,muffin,cheese jellyproducts null

    2 vinegar,canola,sunflower oliproducts null

    3 cornil,vegoil,canola,sesameoil oilproducts null

    4 margarine,butter,muffin,bagel butterproducts null

    5 muffin,bagel,wheatbread breadproducts null

    6 tea,coffee,hotcocoa hotdrinkproducts null

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