Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY: missing clause
Message
 
À
23/12/2006 08:44:11
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01179682
Message ID:
01180094
Vues:
18
>To be honest, I think the ansi SQL should provide us with some mechanism to do more or less what we did in VFP for years. Not looking too strict on the fields missing an aggregation function, but by default take the last (non null) value as VFP did.

I understand what you are saying, however doing that would render the ANSI SQL Standard syntax able to accept queries that have ill defined results according to the statement itself. Knowing the data doesn't cound when you are setting a standard. The non-aggregarate fields in one of those selects are not well defined in their return value so the standard disallows them.

This problem is not really new to VFP9 it was a problem when trying to run queries that ran fine in VFP in SQL Server or Oracle where they violated the standard. Although I can understand what you are saying I don't agree that having VFP9 enforce the standard is a bad thing. Just have to get used to it and write queries that comply with it. Don't pull those extra fields in the original query rather get them after the first query with a seocnd one.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform