Quantcast
Channel: Microsoft Techies
Viewing all articles
Browse latest Browse all 430

Column '' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

$
0
0
SELECT column_name, aggregate_function(column_name)
FROM table_name
WHERE column_name operator value
GROUP BY column_name
HAVING aggregate_function(column_name) operator value;




You are expecting one  column in select , but you are not adding at GROUP BY 

Viewing all articles
Browse latest Browse all 430

Trending Articles