Qualcuno sa dirmi faccio a salvare in una variabile il minimo del count(*) visto che se scrivo:
mi torna questo errorecodice:select min(count(*)) from volo group by codice_compagnia
ERROR: aggregate function calls cannot be nested
grazie![]()
Qualcuno sa dirmi faccio a salvare in una variabile il minimo del count(*) visto che se scrivo:
mi torna questo errorecodice:select min(count(*)) from volo group by codice_compagnia
ERROR: aggregate function calls cannot be nested
grazie![]()
select top 1 count(*)
from volo
group by codice_compagnia
order by 1 desc
purtroppo in postgresql non va...
se "non va" spingilo!![]()
che vuol dire "non va"?
la top in postgres si fa così
SELECT column FROM table LIMIT 10
adattala
ERROR: syntax error at or near "1"
LINE 1: select top 1 count(*)
la top in postgres si fa così
SELECT column FROM table LIMIT 10
adattala