SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Number in sequence
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sachinsamuel
Constraint Violating Yak Guru

India
383 Posts

Posted - 06/27/2007 :  02:32:29  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

India
5581 Posts

Posted - 06/27/2007 :  02:36:02  Show Profile  Visit harsh_athalye's Homepage  Click to see harsh_athalye's MSN Messenger address  Send harsh_athalye a Yahoo! Message  Reply with Quote
Use F_table_Number_Range() function in this thread: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=67876&SearchTerms=F_Table_number

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

madhivanan
Premature Yak Congratulator

India
22765 Posts

Posted - 06/27/2007 :  04:09:23  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000