Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why these two commands will give different results
Message
 
 
À
04/12/2006 20:25:51
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01174441
Message ID:
01174840
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform