Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Missing Numbers Between Two Values in a Table
Message
De
10/11/2017 14:00:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Getting Missing Numbers Between Two Values in a Table
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01655491
Message ID:
01655491
Vues:
77
Hi,
Kindly Guide.

I have a cursor with field fObjectno N(20) which contains Numbers Like 1,4,14,15,12,17,2,3,7,10,13 etc on Random basis.

The lowest is 1 and Highest is 17 in the above case. I need to create a table of Missing Numbers from the above series. I.e The Missing Numbers between the Lowest and Highest in the Table.

Is there any Simple way or SQL to do it in speed.

The Range may be Between 1 to 10000 and it is not necessary that 1 will in the top or 10000 will be at the bottom of the cursor.

I need Missing Figures in a Cursor (Difference in Numbers=1)

Thanks
Harsh
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform