Is there a way to write a dynamic sql select statement (not query a table/column) that will return something like this
id
1
2
3
4
5
...
etc.
I need to write several generic queries that pull values 1 through X
(X will be pre-determined by a different query prior).
Say X is 5 the data will return 5 rows with 1 2 3 4 5
if X is 27 the data will return 1 2 3 ... 27 and so on.
on additional comment this is used in a third party sybase software and i am limited to the complexity of queries it seems creating and dropping tables doesn't seem to work