79796887

Date: 2025-10-22 14:27:35
Score: 0.5
Natty:
Report link

You correctly identified the issue. In BigQuery (and standard SQL), if you want to select a column alongside an aggregate like COUNT(*), you need to include that column in a GROUP BY clause. For example:

SELECT usertype, COUNT(*)
FROM `project.dataset.table`
GROUP BY usertype;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alparslan ŞEN