pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: jmycr@cs.com
Cc: pgsql-sql@postgresql.org
Subject: Re: subquery involving 'now'
Date: Wed, 13 Mar 2002 08:04:47 -0800 (PST)
Message-ID: <20020313080353.S81426-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <79746497.63E9E835.00014635@cs.com>


On Thu, 7 Mar 2002 jmycr@cs.com wrote:

> SELECT a.backup_id, a.archive_id, a.file_name, a.file_size, b.something
> FROM archive a, burp b
> WHERE a.aname = b.aname and a.backup_date < 'now'::datetime - '(select maxday_savefile from service) days'::timespan;
>
> this does not work, any suggestions

Maybe
- ((select maxday_savefile from service) || ' days')::timespan




view thread (3+ messages)  latest in thread

Message-ID: <20020313080353.S81426-100000@megazone23.bigpanda.com>
Permalink:  ../20020313080353.S81426-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020313080353.S81426-100000@megazone23.bigpanda.com

 · 

reply

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: sszabo@megazone23.bigpanda.com, jmycr@cs.com
  Subject: Re: subquery involving 'now'
  In-Reply-To: <20020313080353.S81426-100000@megazone23.bigpanda.com>

* 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