Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GROUP BY overkill
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01248447
Message ID:
01248469
Views:
50
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.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform