Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Number in sequence

Author  Topic 

sachinsamuel
Constraint Violating Yak Guru

383 Posts

Posted - 2007-06-27 : 02:32:29
Hi All,

Is there any way to generate 1 to n sequence number in a single select query?

I mean

Result
------------
1
2
3
4
5
6
.
.
.
.
n

Thanks in advance

Regards
Sachin

Don't sit back because of failure. It will come back to check if you still available. -- Binu

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-06-27 : 02:36:02
Use F_table_Number_Range() function in this thread: [url]http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=67876&SearchTerms=F_Table_number[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-06-27 : 04:09:23
However, the actual answer depends on "Where do you want to show data?"

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -