wmbc - Thursday, March 23, 2017 12:12 PM
Use ROW_NUMBER() to number the rows in table b in a CTE, then join to table a - either on table a id, or on a ROW_NUMBER over table a.
For better assistance in answering your questions, please read this[/url].
Hidden RBAR: Triangular Joins[/url] / The "Numbers" or "Tally" Table: What it is and how it replaces a loop[/url] Jeff Moden[/url]