MySQL - using GROUP BY and DESC

前端 未结 5 1814
慢半拍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 t
    WHERE time = (
        SELECT max(time)
        FROM table
        WHERE t.numbers = numbers
    )
    

提交回复
热议问题