pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Peters <nick.peters@candoltd.com>
To: pgsql-sql@postgresql.org
Subject: Re: Comparing Dates
Date: Thu, 18 Nov 2004 15:34:36 -0600
Message-ID: <419D156C.5030302@candoltd.com> (raw)
In-Reply-To: <1d581afe04111813105e42b319@mail.gmail.com>
References: <419D0DC6.5080504@candoltd.com>
	<1d581afe04111813105e42b319@mail.gmail.com>

Thanks, it turns out that the code that was executing the sql was 
flawed. Thanks to all that replied!

-Nick

Ian Barwick wrote:

>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
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>
>
>  
>




view thread (14+ messages)  latest in thread

Message-ID: <419D156C.5030302@candoltd.com>
Permalink:  ../419D156C.5030302@candoltd.com/
Also on:    postgresql.org/message-id/419D156C.5030302@candoltd.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: nick.peters@candoltd.com
  Subject: Re: Comparing Dates
  In-Reply-To: <419D156C.5030302@candoltd.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