SQL Time Issue

From: <operationsengineer1(at)yahoo(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: SQL Time Issue
Date: 2005-08-31 19:33:48
Message-ID: 20050831193348.52833.qmail@web33308.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

hi all,

i want to pull all the events that occurred from
(today - 2 hours) forward (all events during todays
current date and the last 2 hours from yesterday).

i tried to hack together some mailing list information
to this application and came up with this...

WHERE t_inspect.inspect_timestamp::date >
(current_date::timestamp - 720 'sec'::interval)

inspect_timestamp is datatype timestamp. i probably
shouldn't cast it to date, now that i think about
it... but i bet that won't make the query run right
all by itself.

i'm here so you can bet it didn't work. ;-)

any help w/b much appreciated.

tia...


____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Glaesemann 2005-08-31 21:55:10 Re: SQL Time Issue
Previous Message Bruno Wolff III 2005-08-31 18:04:29 Re: Sorting Challenge