From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: UPDATE Query problem
Date: Thu, 17 Jan 2002 23:14:18 -0500
Message-ID: <3909.1011327258@sss.pgh.pa.us> (raw)
In-Reply-To: <web-622662@davinci.ethosmedia.com>
References: <web-622662@davinci.ethosmedia.com>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com
Subject: Re: UPDATE Query problem
In-Reply-To: <3909.1011327258@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox