I\'ve been getting this error when doing what I thought to be one of the simplest possible queries! I see other people have run into issues here too, and I\'ve looked throug
Lose the ' on the GROUP BY:
'
GROUP BY
SELECT Count(id), Name FROM groupbytest GROUP BY Name
If name is a text, then you need to cast it to VARCHAR, but you might be truncating your column.
name
text
VARCHAR
SELECT Count(id), CAST(Name AS VARCHAR(8000)) AS Name FROM groupbytest GROUP BY CAST(Name AS VARCHAR(8000))