Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Use group by in e retorne a identidade da linha

SELECT id
FROM ( SELECT id, type
       FROM table
       ORDER BY price DESC) AS h
GROUP BY type