Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GROUP BY clause difference between VFP & MSSQL
Message
From
14/09/2000 18:55:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
GROUP BY clause difference between VFP & MSSQL
Miscellaneous
Thread ID:
00416688
Message ID:
00416688
Views:
72
This should be easy for seasoned c/s pros but I have problem getting around it. In MSSQL, columns that appear in the select list "must be" used as arguments of an aggregate function in the GROUP BY clause. For example, in VFP you could do this:

SELECT table1.*, table2.field1, table2.field2, table2.field3
FROM table1 JOIN table2 ON table1.fieldx=table2.fieldx
GROUP BY table2.field2

But you can't do this with MSSQL. How do I get around this "feature"?
It's "my" world. You're just living in it.
Next
Reply
Map
View

Click here to load this message in the networking platform