pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rose <David.R.Rose@disney.com>
To: pgsql-sql@postgresql.org
Subject: RE: [SQL] timespan arithmetic
Date: Mon, 26 Jul 1999 22:51:22 -0700
Message-ID: <199907270551.WAA24650@not.rd.wdi.disney.com> (raw)
In-Reply-To: <D05EF808F2DFD211AE4A00105AA1B5D23AA130@cpsmail>
References: <D05EF808F2DFD211AE4A00105AA1B5D23AA130@cpsmail>

Jackson, DeJuan writes:
> I'm not certain this will work, but
> try:
> 	SELECT * FROM table 
> 	  WHERE loaded_time::datetime >= now()::datetime - '1
> days'::timespan
> 	  ORDER BY loaded_time DESC;

Excellent!  That did the trick.  Many thanks!

(I feel a little stupid for not thinking of trying 'datetime' by
myself--I was running into a dead end with 'reltime'.  Oh well.
Thanks!)

David




view thread (3+ messages)

Message-ID: <199907270551.WAA24650@not.rd.wdi.disney.com>
Permalink:  ../199907270551.WAA24650@not.rd.wdi.disney.com/
Also on:    postgresql.org/message-id/199907270551.WAA24650@not.rd.wdi.disney.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: David.R.Rose@disney.com
  Subject: Re: [SQL] timespan arithmetic
  In-Reply-To: <199907270551.WAA24650@not.rd.wdi.disney.com>
  References: <D05EF808F2DFD211AE4A00105AA1B5D23AA130@cpsmail> <199907270551.WAA24650@not.rd.wdi.disney.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