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 - 2005-03-25 : 07:16:26
|
| Aditya Mahajan writes "Select * From TableName order by 1The Above is correctSelect * From TableName HaHaHaHeHeHeHarHarHarorder by 1The Above seems incorrectBut It works!!!!How? Why?" |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-03-25 : 07:42:43
|
in your second example the HaHaHaHeHeHeHarHarHar becomes an alias for the tablesame asselect *from orders t1order by 1Go with the flow & have fun! Else fight the flow |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-03-25 : 08:16:51
|
| No, the order will not change when using Table Alias.MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|