Re: [GENERAL] Select MIN() & MAX()

From: Dimitri <dimitri(at)France(dot)Sun(dot)COM>
To: "Krasnow, Greg" <gak(at)hnc(dot)com>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Select MIN() & MAX()
Date: 1998-08-12 17:52:29
Message-ID: 9808121955500C.00535@dimitri
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 12 Aug 1998, you wrote:
>In the documentation it mentions that Postgresql does not currently support
>MIN() and MAX() in the select list, but only in the where clause... will
>this be available in the next version of Postgresql and is there another way
>to do this in the current version?

I don't know what is written in the doc, but in practice

select MAX( Attr ) from Table;
select MIN( Attr ) from Table;
select AVG( Attr ) from Table;
etc.

works without problem for me (v.6.3.2)

>
>- Greg
>
>
>Greg Krasnow
>HNC Software Inc.
>Financial Solutions Group
>Senior Software Engineer
>Email: gak(at)hnc(dot)com
>Direct Phone: 619.799.8341
>Fax: 619.799.8036
--
=====================================================
Dimitri KRAVTCHUK (dim) Sun Microsystems
Benchmark Engineer France
dimitri(at)France(dot)Sun(dot)COM
=====================================================

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Krasnow, Greg 1998-08-12 18:11:10 Select MIN() & MAX()
Previous Message Krasnow, Greg 1998-08-12 17:12:38 Select MIN() & MAX()