Demetrios Panayotakopoulos
2010-05-08 08:06:57 UTC
Hi,
This had never happened me again!! using VFP 9.
The table had about 200.000 records
Example
1) Select * from Table where (...a...) or (...b...) into cursor c0
Returned 400 records
2) Select * from Table where (...a...) into cursor c1
Returned 250 records
3) Select * from Table where (...b...) into cursor c2
Returned 180 records
250+180 <> 400 !!!!!
OK, everyone would think that somehow there were some common records.
I new that they weren't.
I compared c1 and c2, was easy since I had unique IDs on each record.
Nothing common.
I lost about an hour to understand what the h..l was going on.
I quit Fox and started again. The problem was there.
Finally, I quit Fox. Logged Out and started again and everything was OK.
Commands (2) and (3) returned the correct number of records == (1).
What was that?
I described this to a colleague who uses Microsoft Access, and he told
me that he had faced similar problems when he was working to the memory
limits.
Demetrios, Greece
This had never happened me again!! using VFP 9.
The table had about 200.000 records
Example
1) Select * from Table where (...a...) or (...b...) into cursor c0
Returned 400 records
2) Select * from Table where (...a...) into cursor c1
Returned 250 records
3) Select * from Table where (...b...) into cursor c2
Returned 180 records
250+180 <> 400 !!!!!
OK, everyone would think that somehow there were some common records.
I new that they weren't.
I compared c1 and c2, was easy since I had unique IDs on each record.
Nothing common.
I lost about an hour to understand what the h..l was going on.
I quit Fox and started again. The problem was there.
Finally, I quit Fox. Logged Out and started again and everything was OK.
Commands (2) and (3) returned the correct number of records == (1).
What was that?
I described this to a colleague who uses Microsoft Access, and he told
me that he had faced similar problems when he was working to the memory
limits.
Demetrios, Greece