'now' problem

From: jmycr(at)cs(dot)com
To: pgsql-sql(at)postgresql(dot)org
Subject: 'now' problem
Date: 2002-03-08 14:13:31
Message-ID: 6E780245.25FCD282.00014635@cs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

SELECT a.id, a.archive_id, a.bk_name, b.ip
FROM archive a, backup b
WHERE a.file_status = 0 and a.bkup_name = b.bkup_name and a.backup_date < 'now'::datetime -
'(SELECT s.maxday_savefile FROM backupservice s
WHERE info.service_type = s.service and a.backup_id = info.backup_id) days'::timespan;

Browse pgsql-sql by date

  From Date Subject
Next Message Dalton Shane 2002-03-08 15:06:16 problem with RECORD in a stored procedure
Previous Message rjb26 2002-03-08 13:26:17 Re: Help reqd: Copying char to date