I get this error when I do what I thought was one of the simplest queries! I see that other people are also having problems, and I looked through all the solutions that I saw, but they have more requests, so it was very difficult for me to choose the problem. I made a small dummy table to illustrate my problem.
table name: grouptest
id name 1 Mel 2 Lucy 3 Mandy 4 Mel 5 Mandy 6 Mel
I want to know how many times each name appears to create a table like:
3 Mel 2 Mandy 1 Lucy
Here's a query that I think should work:
SELECT Count(id), Name FROM groupbytest GROUP BY 'Name'
And I get the error message:
Each GROUP BY expression must contain at least one column, which is not an external reference.
Help!
source share