Click here to Skip to main content
15,914,371 members
Home / Discussions / Database
   

Database

 
QuestionMake sorting on multiple columns with diffrent criteria Pin
Gandalf_TheWhite4-Aug-08 20:23
professionalGandalf_TheWhite4-Aug-08 20:23 
AnswerRe: Make sorting on multiple columns with diffrent criteria Pin
Blue_Boy4-Aug-08 20:50
Blue_Boy4-Aug-08 20:50 
GeneralRe: Make sorting on multiple columns with diffrent criteria Pin
Gandalf_TheWhite4-Aug-08 20:58
professionalGandalf_TheWhite4-Aug-08 20:58 
GeneralRe: Make sorting on multiple columns with diffrent criteria Pin
Blue_Boy4-Aug-08 21:19
Blue_Boy4-Aug-08 21:19 
GeneralRe: Make sorting on multiple columns with diffrent criteria Pin
Gandalf_TheWhite4-Aug-08 22:18
professionalGandalf_TheWhite4-Aug-08 22:18 
GeneralRe: Make sorting on multiple columns with diffrent criteria Pin
Gandalf_TheWhite5-Aug-08 21:13
professionalGandalf_TheWhite5-Aug-08 21:13 
GeneralRe: Make sorting on multiple columns with diffrent criteria Pin
Blue_Boy5-Aug-08 21:46
Blue_Boy5-Aug-08 21:46 
AnswerRe: Make sorting on multiple columns with diffrent criteria Pin
Ashfield5-Aug-08 0:18
Ashfield5-Aug-08 0:18 
While I don't like to contradict, I have yet to come across a database that doesn't sort as specified. Obviously the records will be sorted by the second column within the order of the first.

SELECT id, lastName, title, age
       from #employee ORDER BY
       title DESC, age ASC;


gives

id lastName title age
3 Pandit Web Designer 24
4 Anchor Web Designer 27
14 Gibson System Administrator 31
13 Lewis System Administrator 32


so lets start at the beginning. What database are you using? Where is your query and the results?

Bob
Ashfield Consultants Ltd

GeneralRe: Make sorting on multiple columns with diffrent criteria Pin
Gandalf_TheWhite5-Aug-08 21:15
professionalGandalf_TheWhite5-Aug-08 21:15 
GeneralRe: Make sorting on multiple columns with diffrent criteria Pin
Ashfield6-Aug-08 8:36
Ashfield6-Aug-08 8:36 
Questionreplace a datatable with an older version. Pin
Glen Harvy4-Aug-08 18:14
Glen Harvy4-Aug-08 18:14 
AnswerRe: replace a datatable with an older version. Pin
SimulationofSai4-Aug-08 20:22
SimulationofSai4-Aug-08 20:22 
GeneralRe: replace a datatable with an older version. Pin
Glen Harvy4-Aug-08 21:15
Glen Harvy4-Aug-08 21:15 
GeneralRe: replace a datatable with an older version. Pin
Glen Harvy4-Aug-08 22:04
Glen Harvy4-Aug-08 22:04 
AnswerRe: replace a datatable with an older version. Pin
Blue_Boy4-Aug-08 20:23
Blue_Boy4-Aug-08 20:23 
QuestionERROR [07002] [IBM][iSeries Access ODBC Driver]Wrong number of parameters Pin
Member 45072794-Aug-08 14:24
professionalMember 45072794-Aug-08 14:24 
QuestionError in SSIS conversion [modified] Pin
DerekFL4-Aug-08 7:18
DerekFL4-Aug-08 7:18 
AnswerRe: Error in SSIS conversion Pin
SimulationofSai4-Aug-08 20:13
SimulationofSai4-Aug-08 20:13 
GeneralRe: Error in SSIS conversion Pin
DerekFL5-Aug-08 5:03
DerekFL5-Aug-08 5:03 
GeneralRe: Error in SSIS conversion Pin
DerekFL5-Aug-08 6:59
DerekFL5-Aug-08 6:59 
QuestionTable name as part of column name Pin
techieboi4-Aug-08 4:55
techieboi4-Aug-08 4:55 
AnswerRe: Table name as part of column name Pin
Ashfield4-Aug-08 5:10
Ashfield4-Aug-08 5:10 
GeneralRe: Table name as part of column name Pin
techieboi4-Aug-08 5:14
techieboi4-Aug-08 5:14 
GeneralRe: Table name as part of column name Pin
Ashfield4-Aug-08 5:24
Ashfield4-Aug-08 5:24 
GeneralRe: Table name as part of column name Pin
techieboi4-Aug-08 5:28
techieboi4-Aug-08 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.