Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Missing Numbers Between Two Values in a Table
Message
From
10/11/2017 14:00:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Getting Missing Numbers Between Two Values in a Table
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01655491
Message ID:
01655491
Views:
74
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
Next
Reply
Map
View

Click here to load this message in the networking platform