Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catch 22 on group by
Message
 
To
17/05/2001 11:05:44
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00508311
Message ID:
00508317
Views:
22
>Hi,
>
>I'm doing a select that contains a text field and trying to do a group by. SQL telle me I can't have text fields in the group clause. Fine- I take it out of the group clause and SQL now tells me that the statement can't run because the field isn't in an aggregate function or the group by clause!

Do you really need this huge field to be of a text Datatype? A VarChar field hold up to 8000 characters and can be used in Group By clause.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform