Re: UPDATE Query problem - Mailing list pgsql-sql

From Tom Lane
Subject Re: UPDATE Query problem
Date
Msg-id 3909.1011327258@sss.pgh.pa.us
Whole thread Raw
In response to UPDATE Query problem  ("Josh Berkus" <josh@agliodbs.com>)
Responses Re: UPDATE Query problem  ("Josh Berkus" <josh@agliodbs.com>)
Re: UPDATE Query problem  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
> Interesting.  however, it appears to give me the most recent record with
>  non-NULL values.  What I want is the most recent record with non-NULL values
>  *before* the record I'm trying to update.

Oh, I'm sorry: forgot the extra qualification on the innermost SELECT:
AND oldest.timestamp < history.timestamp

> Yeah, you guessed it ... MS SQL Server 7.

I dunno, how good is SQL Server on subselects?
        regards, tom lane


pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: UPDATE Query problem
Next
From: "Josh Berkus"
Date:
Subject: Re: UPDATE Query problem