ordering by multiple columns

Поиск
Список
Период
Сортировка
От Pablo Barrón
Тема ordering by multiple columns
Дата
Msg-id d4d13b4c0703140850i4957116bw8a25255131a56346@mail.gmail.com
обсуждение исходный текст
Ответы Re: ordering by multiple columns
Re: ordering by multiple columns
Список pgsql-sql
<br /> Hi!<br /><br /> I'm trying to order a list in which the first parameter to order is a specific field, and the
secondshould vary depending on a specific condition. More explicit, I would like to do something like:<br /><br /> -
ORDERBY a.column1, [b.column2 if c.value != 19 || c.column2 if c.value==19]<br /><br /> That is to say, use a column if
avalue on each row isn't 19, OR use a different column if it isn't. How could I solve this? I've got to have a global
orderover my query, so I cannot separate it into two queries, etc :-? <br /><br /> Thank you!<br /><br /><br /> 

В списке pgsql-sql по дате отправления:

Предыдущее
От: Wiebe Cazemier
Дата:
Сообщение: Joins on many-to-many relations.
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: import CSV file