Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
wided
Posting Yak Master
218 Posts |
Posted - 2014-04-17 : 04:17:26
|
Hello I need to have a sequential record number : select RecordNumber, col1, col2 from table1 ... What should write as RecordNumber (Row_number())I need to have this result Num col1 col21 v1 v112 v2 v223 v3 v234 v4 v23 |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2014-04-17 : 05:00:19
|
[code]row_number() over (order by col1, col2) as RecordNumber[/code] KH[spoiler]Time is always against us[/spoiler] |
|
|
wided
Posting Yak Master
218 Posts |
Posted - 2014-04-17 : 05:46:02
|
thanks |
|
|
|
|
|