subquery involving 'now'

From: jmycr(at)cs(dot)com
To: pgsql-sql(at)postgresql(dot)org
Subject: subquery involving 'now'
Date: 2002-03-07 14:08:26
Message-ID: 79746497.63E9E835.00014635@cs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2002-03-07 15:49:28 Re: confusing inheritance
Previous Message Thomas Good 2002-03-07 13:48:49 Re: \d+ and \dd