SELECT
(select id from test as t where t.numero = min(test.numero) and idtipo = test.idtipo limit 1) as id,
idtipo,
min(numero) as tot
FROM
test
group by idtipo
ma dovresti controllarla per bene
SELECT
(select id from test as t where t.numero = min(test.numero) and idtipo = test.idtipo limit 1) as id,
idtipo,
min(numero) as tot
FROM
test
group by idtipo
ma dovresti controllarla per bene
2000 post e sono più vecchio di 4 anni...
grazie a tutti....