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

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 returning free numbers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

21 Posts

Posted - 08/02/2007 :  10:38:32  Show Profile  Reply with Quote
I need to make a procedure that return free numbers from a secuential table. Could somebody help me?.

for ex: 1, 2, 3, 4, 5, 7, 8, 9, 10

Its mast be return 6. Thank

Flowing Fount of Yak Knowledge

United Kingdom
1064 Posts

Posted - 08/02/2007 :  10:42:07  Show Profile  Reply with Quote
What's a secuential table? Are these numbers in rows or columns? The former - sounds like you have a first normal form problem. The latter is easy.
Go to Top of Page

Cybernetic Yak Master

11752 Posts

Posted - 08/02/2007 :  10:56:42  Show Profile  Visit spirit1's Homepage  Reply with Quote

Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page

Patron Saint of Lost Yaks

30407 Posts

Posted - 08/02/2007 :  11:00:03  Show Profile  Visit SwePeso's Homepage  Reply with Quote
See http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=17768

E 12°55'05.25"
N 56°04'39.16"
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