group by codice: select campo, count(*) as tot from tabella group by campo order by tot
select campo, count(*) as tot from tabella group by campo order by tot
Il silenzio è spesso la cosa migliore. Pensa ... è gratis.
Regole del Forum