;with Cte AS ( SELECT ROW_NUMBER() OVER ( PARTITION BY LeaveID ORDER BY NID DESC ) AS SrNo ,* FROM tblLeaveNotifications WHERE EmpCode = 'EMP-0136' ) SELECT * FROM Cte WHERE SrNo = 1
Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Replies
Know the answer? Post it — somebody with the same question will find it here.