MySQL - using GROUP BY and DESC

前端 未结 5 1815
慢半拍i
慢半拍i 2020-12-31 08:03

In my SQL query I am selecting data with GROUP BY and ORDER BY clauses. The table has the same numbers across multiple rows wi

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-31 08:35

    SELECT * FROM table
        WHERE time IN (
            SELECT MAX(time)
                FROM table
                GROUP BY numbers
        )
    

提交回复
热议问题