Jj... za tohle bys měl dostat vylískáno, v případě mrkvošrotího SQL serveru třeba takto:

Kód:
Column '[tabulka].serie' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.