Re: NEWBIE: How do I get the oldest date contained in 3 tables

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: "Lorenzo Thurman" <lorenzo(at)diespammerhethurmans(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: NEWBIE: How do I get the oldest date contained in 3 tables
Date: 2007-04-09 19:05:25
Message-ID: D425483C2C5C9F49B5B7A41F89441547010005BD@postal.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Just do a union and return the min

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-
> owner(at)postgresql(dot)org] On Behalf Of Lorenzo Thurman
> Sent: Monday, April 09, 2007 7:32 AM
> To: pgsql-general(at)postgresql(dot)org
> Subject: [GENERAL] NEWBIE: How do I get the oldest date contained in 3
> tables
>
> I have three tables using date fields. I want to retrieve the oldest
> date contained in the tables. Can someone show me an example of a
query
> that would do that?
> TIA
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 6: explain analyze is your friend

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bill Moran 2007-04-09 19:05:42 Re: Is there a shortage of postgresql skilled ops people
Previous Message Alvaro Herrera 2007-04-09 18:59:14 Re: Problem with copying data