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 |
|
jung1975
Aged Yak Warrior
503 Posts |
Posted - 2005-03-02 : 12:22:23
|
I have a table looks like: ChangesHigh to HeHigh to HighLow to HeLow to HighLow to Low I want to change the order, so the output should looks like: High to HeHigh to HighLow to HeLow to LowLow to High How can I do this? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-03-02 : 12:30:11
|
| How are you ordering the output at the moment?Use the same order by but add at the frontcase when changes = 'Low to High' then 1 else 0 end ,If you don't have an order by clause then the question is meaningless as the order can change at any time.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|