标签: sql sql-server
Here it is, I already use two queries but it doesn't seems to work the right way, I should view the latest PREV_BAL "5490"
答案 0 :(得分:0)
在您查询使用desc的两列时都使用
row_number() over(partition by tenant_id order by date desc ,time_p desc) rn