Re: sort output per alpha-numeric?

Поиск
Список
Период
Сортировка
От Rui DeSousa
Тема Re: sort output per alpha-numeric?
Дата
Msg-id E3F7F091-808A-4C9E-950D-99B12AFE11D3@crazybean.net
обсуждение исходный текст
Ответ на Re: sort output per alpha-numeric?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-admin


On Dec 1, 2021, at 6:24 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:

 the normalized version of this model would store the width and height measurements separately and your print_size text would be a presentation issue.

I second this approach as it should be normalized into two fields. It would then be a simple order by area.

i.e.   order by width * height 

This would work in the meantime, given the data format doesn’t change:

order by split_part(print_size, 'x', 1)::int * split_part(print_size, 'x', 2)::int

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

Предыдущее
От: Alexey M Boltenkov
Дата:
Сообщение: Re: sort output per alpha-numeric?
Следующее
От: Jiankang Ji
Дата:
Сообщение: Re: Are you working on both pentaho and postgresql?