SQL: Return only first occurrence

前端 未结 5 2188
我在风中等你
我在风中等你 2021-02-19 11:48

I seldomly use SQL and I cannot find anything similar in my archive so I\'m asking this simple query question: I need a query which one returns personID and onl

5条回答
  •  说谎
    说谎 (楼主)
    2021-02-19 12:11

    You need to order by seen time not by seen id:

    PARTITION BY seenID ORDER BY seenTime
    

提交回复
热议问题