pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian C. Doyle <bcdoyle@mindspring.com>
To: pgsql-sql@postgresql.org
Subject: if else query help
Date: Thu, 12 Oct 2000 10:14:57 -0400
Message-ID: <5.0.0.25.2.20001012094914.081abeb0@pop.mindspring.com> (raw)

Hello all,

I need to write a query that will pull information from table2 if 
information in table1 is older then xdate.

My laymen example:

SELECT table2.date, count(table2.name) as count
WHERE table1.startdate > 2 weeks
AND table2.submitdate > 2 weeks
;

So i Guess my real questions is how do I determine the age of an entry to 
another table?






view thread (5+ messages)  latest in thread

Message-ID: <5.0.0.25.2.20001012094914.081abeb0@pop.mindspring.com>
Permalink:  ../5.0.0.25.2.20001012094914.081abeb0@pop.mindspring.com/
Also on:    postgresql.org/message-id/5.0.0.25.2.20001012094914.081abeb0@pop.mindspring.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: bcdoyle@mindspring.com
  Subject: Re: if else query help
  In-Reply-To: <5.0.0.25.2.20001012094914.081abeb0@pop.mindspring.com>
  References: <5.0.0.25.2.20001012094914.081abeb0@pop.mindspring.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