WITH RankedRecords AS (
SELECT
*,
ROW_NUMBER() OVER (PARTITION BY AppraisalID ORDER BY ModifiedDate) AS RowNum
FROM
tbl_EmpCompetencies
)
SELECT *
FROM RankedRecords
WHERE RowNum = 1;
The phrase "Everything should be made as simple as possible, but not simpler" is a quote by Albert Einstein, meaning that while...
No comments:
Post a Comment