Sort question - Fractions, Metric etc

Поиск
Список
Период
Сортировка
От Bret Stern
Тема Sort question - Fractions, Metric etc
Дата
Msg-id 57f60e61-114f-c403-b2e2-820e76f08d64@machinemanagement.com
обсуждение исходный текст
Ответы Re: Sort question - Fractions, Metric etc  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: Sort question - Fractions, Metric etc  ("Gogala, Mladen" <gogala.mladen@gmail.com>)
Re: Sort question - Fractions, Metric etc  (Pól Ua Laoínecháin <linehanp@tcd.ie>)
Список pgsql-general
I have a table with metric, imperial, fraction columns.

Is there a way to sort correctly using imperial (eg; .125, .375, .437 -> 
1., 1.125)

Couldn't handle it with ORDER BY ASC, DESC args so I added a sort_column 
and sorted based

on those values eg; 1,2,3,4,5,6 indicating the value I need to show in 
which sequence.


Just curious what the pro's do

Bret




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

Предыдущее
От: Brent Wood
Дата:
Сообщение: RE: Multi-master replication
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Sort question - Fractions, Metric etc