pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gaetano Mendola <mendola@bigfoot.com>
To: jmycr@cs.com
To: pgsql-sql@postgresql.org
Subject: Re: subquery involving 'now'
Date: Wed, 13 Mar 2002 17:58:19 +0100
Message-ID: <016501c1cab0$46eac390$d28efea9@GMENDOLA2> (raw)
References: <79746497.63E9E835.00014635@cs.com>

<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;

Try:

using now() not 'now'::datetime.


Ciao.




view thread (3+ messages)

Message-ID: <016501c1cab0$46eac390$d28efea9@GMENDOLA2>
Permalink:  ../016501c1cab0$46eac390$d28efea9@GMENDOLA2/
Also on:    postgresql.org/message-id/016501c1cab0$46eac390$d28efea9@GMENDOLA2

 · 

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: mendola@bigfoot.com, jmycr@cs.com
  Subject: Re: subquery involving 'now'
  In-Reply-To: <016501c1cab0$46eac390$d28efea9@GMENDOLA2>

* 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