SQL, Auxiliary table of numbers

Posted by vzczc on Stack Overflow See other posts from Stack Overflow or by vzczc
Published on 2008-08-14T09:01:37Z Indexed on 2010/04/18 18:03 UTC
Read the original article Hit count: 211

Filed under:
|
|
|

For certain types of sql queries, an auxiliary table of numbers can be very useful. It may be created as a table with as many rows as you need for a particular task or as a user defined function that returns the number of rows required in each query.

What is the optimal way to create such a function?

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server