this means that you cannot select and count the same column.
try selecting the following:

select COL1, count(COL2) where COL2="X" group by COL1

if it does not help, here is a sample http://jsfiddle.net/TheNez101/pKjDa/


On Thu, Nov 17, 2011 at 2:57 PM, Dan <[email protected]> wrote:

> Thanks for your help but I can't seem to get this working.
>
> select COL1, count(COL1) where COL2="X" group by COL1
>
> Was hoping that this would be the equivalent to distinct but instead
> returns the following error:
> Column [COL1] cannot be selected both with and without aggregation in
> SELECT.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/aFrJAyMHTTQJ.
>
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to