KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to specify multiple columns in the OVER ORDER BY clause? SELECT ROW_NUMBER() OVER(ORDER BY (A.Col1)) AS ID FROM MyTable A The above works fine, but trying to add a second column does not work. SELECT ROW_NUMBER() OVER(ORDER BY (A.Col1, A.Col2)) AS ID FROM MyTable A Incorrect syntax near ','.
Tags (comma-separated)
Save Edits
Cancel