Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL quiz. Statement that returns *missing* values
Message
From
13/07/2011 03:29:32
 
 
To
12/07/2011 23:44:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01518034
Message ID:
01518038
Views:
80
Likes (1)
To find the start of all the gaps:
Select k.numfield+1 as manko From yourtable k;
   Where k.numfield+1 Not in (Select numfield From yourtable)
>A table has an index column that starts at one and goes to N, with some missing values. Is there an SQL Select statement (its ok to use more than one) that will return the first x items that are NOT present in the column?
>
>TIA,
>
>Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform