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
You have quotes around the Name field which are unneeded.
SELECT Count(id), Name FROM grouptest GROUP BY Name
Based on your comments, you need to CAST your Name column:
CAST
Name
SELECT Count(id), Cast(Name as Varchar(max)) Name FROM grouptest GROUP BY Cast(Name as Varchar(max))