• Eirikur Eiriksson (8/22/2014)


    gbritton1 (8/22/2014)


    I don't think that's a Cartesian product. If it were, you would have 89 (8*10) rows of ouput.

    A CROSS JOIN would give you a Cartesian Product

    A CROSS JOIN would produce a full Cartesian Product, equal duplicate values will produce partial Cartesian Product, regardless of the join type.

    ๐Ÿ˜Ž

    Another of Jeff's articles to the rescue:

    http://www.sqlservercentral.com/articles/T-SQL/61539/[/url]

    โ€œWrite the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.โ€ - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden