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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2002-07-28 : 15:18:00
|
| Calvin writes "I have a select statement:select c1,c2 from t where c1 = 100 order by c2-----------------------------------------------What I want to do is assign a row# to every row returnedselect row#, c1,c2 from t where c1 = 100 order by c2----------------------------------------------------So the returned resultset will look like this:1 c1,c22 c1 c2,...10 c1 c2---------------------Is there any way to accomplish this without using a temporary table?Calvin" |
|
|
robvolk
Most Valuable Yak
15732 Posts |
|
|
|
|
|