Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL syntax (not familiar)
Message
 
À
04/08/2003 19:12:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00816679
Message ID:
00816685
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>SELECT nixies, NixieEng, cnt(*) FROM DBF() ORDER BY nixies GROUP BY nixies
In VFP8, SQL statements hew more closely to the SQL standard, which states that all non-aggregate fields in a SELECT field list must appear in the GROUP BY list. Unfortunately, you can't do the easy fix, including NixieEng in the GROUP BY, because you can't group by a memo. There are a couple of workarounds: you could do a PADR(nixieEng), and then GROUP BY 1, 2 (I think -- haven't actually checked the syntax); or you could do two SELECTs: one to limit the fields, and one to join in the memos.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform