Re: sort output per alpha-numeric?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Dec 1, 2021, at 6:24 PM, David G. Johnston <david.g.johnston@xxxxxxxxx> 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


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux