--根据 x 分组后、根据 y 排序后取第一条
select * from (
 select ROW_NUMBER() over(partition by x order by y desc) RowNum
   ,testTable.*
   from testTable) as t1  where RowNum = 1

 

相关文章:

  • 2021-12-18
  • 2021-12-15
  • 2021-08-01
  • 2023-03-05
  • 2022-12-23
  • 2021-08-03
  • 2021-06-02
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案