Min and max element of an array column

Поиск
Список
Период
Сортировка
От Gianvito Pio
Тема Min and max element of an array column
Дата
Msg-id 4A9E4FC0.1010908@gmail.com
обсуждение исходный текст
Ответы Re: Min and max element of an array column
Список pgsql-sql
Hello,
is it possible to obtain the minimum and the maximum single element of 
an array column?

Example:
[1, 2 ,5]
[3, -1, 6]
[9, 18,-4 ]

I'd just like to make a query that gives me the min (-4) and the max(18) 
of the column. Is that possible without a function? Thanks


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