I have a table with many duplicate items – Many rows with the same id, perhaps with the only difference being a requested_at column.
id
requested_at
I\'d l
I suggest a similar form that avoids a sort in the window function:
SELECT * FROM ( SELECT *, MAX() OVER (PARTITION BY ) AS max_timestamp, FROM ) WHERE = max_timestamp 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题