pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Doyle <bdoyle@localmatters.com>
To: pgsql-sql@postgresql.org
Subject: timestamp SQL question
Date: Thu, 17 Nov 2005 16:18:12 -0700
Message-ID: <1132269492.30942.20.camel@dev11dt.corp.localmatters.com> (raw)

I have a table like: 

events
  visitor_uid varchar(32)
  event_type  varchar(32)
  event_type  timestamp

I would like to select events from the table that are older than 30 days
from right now.  How would I do that in one query?  Thanks. 








view thread (2+ messages)  latest in thread

Message-ID: <1132269492.30942.20.camel@dev11dt.corp.localmatters.com>
Permalink:  ../1132269492.30942.20.camel@dev11dt.corp.localmatters.com/
Also on:    postgresql.org/message-id/1132269492.30942.20.camel@dev11dt.corp.localmatters.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bdoyle@localmatters.com
  Subject: Re: timestamp SQL question
  In-Reply-To: <1132269492.30942.20.camel@dev11dt.corp.localmatters.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