This may not be possible, but I thought I’d throw it out here:
Given the following table:
ID, Begin, End
123, 1, N
Where N is an integer, write a query to return the following result set:
ID, Begin, End
123, 1, 1
123, 1, 2
123, 1, 3
.
.
.
123, 1, N
The platform we are using is SQL Server 2005, but if you can do it with another flavor of SQL, I’d still be interested in the solution.
try this:
comments
and use this query instead:
have to have a table Numbers before this will work (see link above)
it will run better.