DIfference between max() and greatest() ? - Mailing list pgsql-sql

From Ruben Gouveia
Subject DIfference between max() and greatest() ?
Date
Msg-id 51e507b0809111033j3015b7fcwd1f5922bc66b5ab5@mail.gmail.com
Whole thread Raw
Responses Re: DIfference between max() and greatest() ?
Re: DIfference between max() and greatest() ?
Pls Hlp: SQL Problem
List pgsql-sql
<div dir="ltr">What is the difference between these two. I know that max() is an aggregate function<br /><br />select
model,count(distinctcars)<br />from rc_cars<br />where greatest(baught,returned) < current_date - integer '1'<br />
groupby model;<br /><br />Do i need to have a max () around a greatest() to make sure i get the most recent of the
two.<br/><br />select model,count(distinct cars)<br /> from rc_cars<br /> where max(greatest(baught,returned)) <
current_date- integer '1'<br /> group by model;<br /><br /><br /></div> 

pgsql-sql by date:

Previous
From: Emi Lu
Date:
Subject: Re: pg_restore in java connection (auto_commit = false)
Next
From: "Bart Degryse"
Date:
Subject: Re: DIfference between max() and greatest() ?