Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GROUP BY overkill
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01248447
Message ID:
01248471
Vues:
56
>Hi
>
>>If you're using list of fileds in the GROUP BY clause, you should also list them in SELECT field list. Otherwise adding new field to the table will brake your select. Alternatively, you can wrap fields that have the same value in a group in MIN() or MAX() instead of grouping on them. Even better, you can get key filed first and than join back to the table to get all fields including memo. SOmething like ( not tested)
>
>Now that is an idea!!! Thanks a lot. I will test it.

You're welcome.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform