From: Ian Barwick <barwick@gmail.com>
To: Nick Peters <nick.peters@candoltd.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Comparing Dates
Date: Thu, 18 Nov 2004 22:10:23 +0100
Message-ID: <1d581afe04111813105e42b319@mail.gmail.com> (raw)
In-Reply-To: <419D0DC6.5080504@candoltd.com>
References: <419D0DC6.5080504@candoltd.com>
On Thu, 18 Nov 2004 15:01:58 -0600, Nick Peters
<nick.peters@candoltd.com> wrote:
> Hey,
>
> I am trying to compare dates in a sql statement. this is what i have tried:
>
> SELECT * FROM transactions WHERE shippingdate>2004-06-08 AND
> transtype='Sale';
SELECT * FROM transactions WHERE shippingdate> '2004-06-08' AND
transtype='Sale';
Ian Barwick
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: barwick@gmail.com, nick.peters@candoltd.com
Subject: Re: Comparing Dates
In-Reply-To: <1d581afe04111813105e42b319@mail.gmail.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