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  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список 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 по дате отправления:

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: How to create Function which retruns username and password
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Min and max element of an array column