Re: EXTERN JOIN with WHEN query

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: javier garcia - CEBAS <rn001(at)cebas(dot)csic(dot)es>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: EXTERN JOIN with WHEN query
Date: 2003-06-06 12:21:53
Message-ID: 20030606122153.GB30097@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 05, 2003 at 16:56:54 +0200,
javier garcia - CEBAS <rn001(at)cebas(dot)csic(dot)es> wrote:
>
> SELECT fechas.fecha,precipitacion FROM fechas LEFT OUTER JOIN precal41 ON
> (fechas.fecha = precal41.fecha) WHEN fechas.fecha >= min(precal41.fecha);
>
> With the answer:
>
> ERROR: parser: parse error at or near "WHEN"
>
> Could you help me with this query?

The keyword should be "WHERE" instead of "WHEN".

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-06 12:29:16 Re: Create index on the year of a date column
Previous Message kdebisschop 2003-06-06 11:39:40 Re: Nulls get converted to 0 problem