Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
How to Get All Max ID Record
Jayraj Goswami
8y
362
1
Reply
;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
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Export SQL Server Table Data to Tally XML Formats Using C#
query