How to max() make null as biggest value?

Поиск
Список
Период
Сортировка
От Feixiong Li
Тема How to max() make null as biggest value?
Дата
Msg-id 2A8BBCA2-814C-4E8D-BCE1-11FA2F8D120E@gmail.com
обсуждение исходный текст
Ответы Re: How to max() make null as biggest value?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: How to max() make null as biggest value?  (silly sad <sad@bankir.ru>)
Список pgsql-sql
Hi , guys ,
I am newbie for sql, I have a problem when using max() function, I  
need get null when there are null in the value list, or return the  
largest value as usual, who can do this?

i.e.  max([1,2,3,4,5]) => 5
max([1,2,3,4,5,null]) => null

thanks in advance!

Feixiong
feixiongli@gmail.com








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

Предыдущее
От: Steve Lefevre
Дата:
Сообщение: creating a versioning system for sets?
Следующее
От: Gonzalo Aguilar Delgado
Дата:
Сообщение: Problem with insert related to different schemas