Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL syntax (not familiar)
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00816679
Message ID:
00816685
Views:
16
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform