Guest_imported
New member
- Jan 1, 1970
- 0
Help!
I was using some code to do a nth select, and I think it's wrong.
this is what I am using:
select * from myfile where maildate=' ' .and. mod(recno(),2) = 0 into cursor mike
it gives me a real nice sampling accross the file, but now I am to the point where there is only 36000 records left, and I want to nth off 16000, and I only get 12716. I think this command was giving me records where the recno() ends in 2.
I need to know how to NTH select. Example: If I have 10 records in my database, and I want exactly 2, I would NTH select 20% of that file, and it would only pull every 5th record.
Any help is always very much appreciated,
-Mike
I was using some code to do a nth select, and I think it's wrong.
this is what I am using:
select * from myfile where maildate=' ' .and. mod(recno(),2) = 0 into cursor mike
it gives me a real nice sampling accross the file, but now I am to the point where there is only 36000 records left, and I want to nth off 16000, and I only get 12716. I think this command was giving me records where the recno() ends in 2.
I need to know how to NTH select. Example: If I have 10 records in my database, and I want exactly 2, I would NTH select 20% of that file, and it would only pull every 5th record.
Any help is always very much appreciated,
-Mike