Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Skipped Series
Message
De
15/09/2007 03:06:17
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Skipped Series
Divers
Thread ID:
01254517
Message ID:
01254517
Vues:
70
Hi guys,

I need to get the numbers that were skipped between two given numbers.

Example: Mytable.dbo contains the following records

orno amount
1 ---- 1,000
3 ---- 5,000
6 ---- 2,000
8 ---- 3,000


Is it possible to query this table so that I could get the orno numbers that were skipped? (2,4,5,7,9,10) provided that the 2 given numbers is 1 to 10 ?


Thanks in advance....
Music Rocks www.musicreserve.blogspot.com
Success is 1% Inspiration & 99% Perspiration
God Sometimes Delays His Help to Test Our Faith and Energize Our Prayers
Our Boat May Be Tossed While He Sleeps, But He Wakes Up Before it Sinks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform