SELECT t1.OrderId,t1.QueueId 
FROM (
    SELECT tq.OrderId,tq.QueueId,ROW_NUMBER() OVER(PARTITION BY tq.OrderId ORDER BY tq.QueueId DESC) rn
    FROM TransferQueue tq WITH(NOLOCK)
) t1
WHERE rn = 1

相关文章:

  • 2022-01-29
  • 2022-12-23
  • 2021-11-29
  • 2021-06-27
  • 2021-12-02
  • 2021-12-02
猜你喜欢
  • 2022-02-22
  • 2021-08-30
  • 2021-07-16
  • 2021-11-19
  • 2021-05-25
相关资源
相似解决方案