Re: Find min and max values across two columns?

Поиск
Список
Период
Сортировка
От Emi Lu
Тема Re: Find min and max values across two columns?
Дата
Msg-id 4469E537.6010108@encs.concordia.ca
обсуждение исходный текст
Ответ на Re: Find min and max values across two columns?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Thank you Tom.

>Emi Lu <emilu@encs.concordia.ca> writes:
>  
>
>>ERROR:  function greatest(integer, integer) does not exist
>>HINT:  No function matches the given name and argument types. You may 
>>need to add explicit type casts.
>>    
>>
>
>We added greatest/least in 8.1, but before that you can just use a
>CASE expression instead, along the lines of
>    case when x>y then x else y end
>
>            regards, tom lane
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: explain analyze is your friend
>  
>



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Find min and max values across two columns?
Следующее
От: "Risto Tamme"
Дата:
Сообщение: Table constraints and INSERT