Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why these two commands will give different results
Message
 
 
To
04/12/2006 20:25:51
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01174441
Message ID:
01174840
Views:
7
>Try the query without the indexes and without set order. That should give you the correct result. Then see about adding the .idx via SET INDEX not via SET ORDER

I put set order to and got

Found a mismatch on I909648COL cRate = 0 laArr[1]= 0.094859333
Found a mismatch on I909609COL cRate = 0 laArr[1]= 0.100000000
Found a mismatch on I909656COL cRate = 0 laArr[1]= 0.100000000
Found a mismatch on I808204COL cRate = 0 laArr[1]= 0.100000000
Found a mismatch on I808205COL cRate = 0 laArr[1]= 0.100000000
Found a mismatch on I807227COL cRate = 0 laArr[1]= 0.100000000
Found a mismatch on I808130COL cRate = 0 laArr[1]= 0.087330233
Found a mismatch on I808228COL cRate = 0 laArr[1]= 0.067779691
Found a mismatch on I808229COL cRate = 0 laArr[1]= 0.067779691
Found a mismatch on I518767COL cRate = 0 laArr[1]= 0.100000000

This is strange since these Inv_No + Salesman do not exist in the table. I've tried to do select and seek in command window and they returned empty results.

Somehow SELECT SUM() finds wrong records. I re-built index Com_Inv earlier today by deleting it first.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform