select colm1,Max(colm2),max(colm3) from table where condition group by colm1

05-26 02:37