| From: | Nick Peters <nick(dot)peters(at)candoltd(dot)com> |
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Comparing Dates |
| Date: | 2004-11-18 21:34:36 |
| Message-ID: | 419D156C.5030302@candoltd.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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(dot)peters(at)candoltd(dot)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
>
>
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Greg Stark | 2004-11-19 05:50:26 | Re: Comparing Dates |
| Previous Message | Thomas F.O'Connell | 2004-11-18 21:15:30 | Re: Comparing Dates |