Re: Add: Special sort querstion

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Add: Special sort querstion
Дата
Msg-id dcc563d10904010808p52118a7ah3ff78029b3a91c3a@mail.gmail.com
обсуждение исходный текст
Ответ на Add: Special sort querstion  (Dominik Piekarski <d.piekarski@vivawasser.de>)
Список pgsql-sql
On Fri, Mar 27, 2009 at 6:10 AM, Dominik Piekarski
<d.piekarski@vivawasser.de> wrote:
> Oh, actually every row of the same id-range has the same start_lat/start_lng
> coordinates as the predecessors end_lat/end_lng coordinates. But the
> question remains the same. Is there a way to do something like ORDER BY
> (start_lat = end_lat AND start_lng = end_lng) ? Or maybe another way to
> achieve the same result?

Would something like

order by start_lat-endlat, start_lng-end_lng

OR

case when start_lat=end_lat AND start_lng=end_lng then 0 else 1 end

???


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

Предыдущее
От: Dirk Jagdmann
Дата:
Сообщение: Re: Add: Special sort querstion
Следующее
От: "Deirdre Hall"
Дата:
Сообщение: Stored function not accepting null value?