if else query help

From: "Brian C(dot) Doyle" <bcdoyle(at)mindspring(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: if else query help
Date: 2000-10-12 14:14:57
Message-ID: 5.0.0.25.2.20001012094914.081abeb0@pop.mindspring.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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?

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Mark Volpe 2000-10-12 14:22:12 Re: dynamic object creation
Previous Message karasiov 2000-10-12 08:51:49 set digest