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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: gak(at)hnc(dot)com (Krasnow, Greg)
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Select MIN() & MAX()
Date: 1998-08-12 19:37:37
Message-ID: 199808121937.PAA11645@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 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)"?

Do:

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

I think that should work.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Terence Dixon 1998-08-12 22:09:13 unsubscribe pgsql-general
Previous Message Bruce Momjian 1998-08-12 19:36:36 Re: [GENERAL] Select MIN() & MAX()