Re: [GENERAL] Select MIN() & MAX() - Mailing list pgsql-general

From Dimitri
Subject Re: [GENERAL] Select MIN() & MAX()
Date
Msg-id 9808122128520G.00535@dimitri
Whole thread Raw
In response to Select MIN() & MAX()  ("Krasnow, Greg" <gak@hnc.com>)
List pgsql-general
On Wed, 12 Aug 1998, you wrote:
>oops... my goof... I read it too quickly...
>
>ok... one more stupid question... can you not do an "insert into t1 (select
>'a','b',min(f)-1 from t2)"?

Of course:

insert into t1
  select 'a', 'b', min(f) - 1
   from t2;

it's standard SQL

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

pgsql-general by date:

Previous
From: "Wim Ceulemans"
Date:
Subject: Unique key with nulls and copying databases across computers
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Select MIN() & MAX()