pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jmycr@cs.com
To: pgsql-sql@postgresql.org
Subject: subquery involving 'now'
Date: Thu, 07 Mar 2002 09:08:26 -0500
Message-ID: <79746497.63E9E835.00014635@cs.com> (raw)

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
jnc



view thread (3+ messages)  latest in thread

Message-ID: <79746497.63E9E835.00014635@cs.com>
Permalink:  ../79746497.63E9E835.00014635@cs.com/
Also on:    postgresql.org/message-id/79746497.63E9E835.00014635@cs.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: jmycr@cs.com
  Subject: Re: subquery involving 'now'
  In-Reply-To: <79746497.63E9E835.00014635@cs.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