ERROR: column "query_result.campo1" must appear in the GROUP BY clause or be used in an aggregate function
non posso aggregare per un solo campo se nel SELECT ce ne sono altri,
infatti se provo in mysql funziona...
POSTGRES è più fiscale, devo aggiungere tutti i campi della SELECT, ma in questo caso poi non raggiungerei il mio risultato...