Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL vfp 8 vs. vfp 6
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00815861
Message ID:
00816107
Vues:
23
>That's kinda of discouraging(and confusing). I am supposed to think my sql select statements possibly returned incorrect data in vfp7?

Lets take a look at your query
Select detail, noun, sum(price), sum(quantity) ;
  from bsyear03 group by detail
There's nothing in the query that tells VFP from which record to take value for 'noun' column. The query is ambiguous. It's not documented but known that VFP will return value for the columns not icluded in GROUP BY clause from the last physical record in the group. It may or may not be what you want or expect. Even more, the result of the query depends on the physical order of data in the table. If you rearange physical order of data in the table the result returned by this query will also changed.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform