paulo.margarido (8/25/2016)
ok, now can we go back to the discussion?
You're confusing the purpose and capabilities of SQL Server with those of Excel.
Use Excel for this.
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]