From: Cliff Crawford <cjc26@cornell.edu>
To: Alder <Terrence.Branscombe@gems8.gov.bc.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: SQL Dummy Needs Help
Date: Mon, 12 Mar 2001 22:49:12 -0500
Message-ID: <20010312224912.A17508@cornell.edu> (raw)
In-Reply-To: <20010312211421.A17214@cornell.edu>
References: <3aa9287b@obsidian.gov.bc.ca>
<20010312211421.A17214@cornell.edu>
* Cliff Crawford <cjc26@cornell.edu> menulis:
>
> SELECT table2.title_no, table2.paidto_date
> FROM table1, table2
> WHERE table1.title_no=table2.title_no
> AND (date_part('month', table1.effect_date) !=
> date_part('month', table2.paidto_date)
> OR date_part('day', table1.effect_date) !=
> date_part('day', table2.paidto_date));
Ooops, I keep confusing C and SQL operators...the "!=" above should be "<>".
--
Cliff Crawford
He who sacrifices his conscience to ambition
burns a picture to obtain the ashes. - Chinese proverb
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: cjc26@cornell.edu, Terrence.Branscombe@gems8.gov.bc.ca
Subject: Re: SQL Dummy Needs Help
In-Reply-To: <20010312224912.A17508@cornell.edu>
References: <3aa9287b@obsidian.gov.bc.ca> <20010312211421.A17214@cornell.edu> <20010312224912.A17508@cornell.edu>
* 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