Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting Records
Message
From
24/12/2009 06:54:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Selecting Records
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01440504
Message ID:
01440504
Views:
114
Hi All,

Need a little help to construct an efficient SELECT statement. I have a cursor containing N records. I want to select every Xth record startng with and including the last record in the source cursor. So I want records:

N
N - X*1
N - X*2
N - X*3
...
...

What is the select statement for this keeping in mind also that X will probbaly not be a factor of N. i.e. I may have 79 records and require every 7th record starting from the last record going backwards.

Thanks
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Next
Reply
Map
View

Click here to load this message in the networking platform