Jaime Casanova escribió:> select distinct on(a) a, b, c from t order by 1, 2> > o si prefieres usar sql estandar:> > select * from t where (a, b) in (select a, min(b) from t group by 1)
Gracias!
-- Daniel Hernándezhttp://www.scio.cl