Click here to Skip to main content
16,016,460 members

Comments by Tarannum Mujawar (Top 1 by date)

Tarannum Mujawar 10-Feb-14 6:05am View    
When I execute the following sql lines
;WITH cte AS
(
SELECT *,
ROW_NUMBER() OVER (PARTITION BY Name ORDER BY Date DESC) AS rn
FROM dbdate
)
SELECT *
FROM cte
WHERE rn = 1
I get the following error:
"The OVER SQL construct or statement is not supported."