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 - 2006-04-10 : 09:33:37
|
| Jimmy writes "Good day, I am having an issue with a query. First let me display my query below. My query is; select code, decode_one from rts_code_dtl where category_cd = 34;And the result is below;Below are times in the am, I am trying to take the 10:00 and 1000 to the bottom. I triedselect code, decode_one from rts_code_dtl where category_cd = 34 order by code ASC;But it did not work.CODE DECODE_ONE1000 10:00 600 6:00 615 6:15 630 6:30 645 6:45 700 7:00715 7:15730 7:30745 7:45800 8:00815 8:15830 8:30845 8:45900 9:00915 9:15930 9:30945 9:45" |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2006-04-10 : 09:35:03
|
convert the code to integerorder by convert(int, code) KH |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-04-10 : 09:38:33
|
| Do you want to move only the first row as last?MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|