X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B7FD13A4828 for ; Thu, 18 Nov 2004 21:10:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39202-07 for ; Thu, 18 Nov 2004 21:10:26 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by svr1.postgresql.org (Postfix) with ESMTP id 0C3AB3A4831 for ; Thu, 18 Nov 2004 21:10:27 +0000 (GMT) Received: by wproxy.gmail.com with SMTP id 71so524697wra for ; Thu, 18 Nov 2004 13:10:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=T5WhET2NX1NON3peRR0lrg+YRzd65rZFvCehzc5K3X6WQLGD3pbblUUsbIXGzVKoWNKma2NDTwhmBizQXg+f6V5A+D8SXUo1Wg+PPwjQ8JgzFaaSwyc10/bpJ/xE9BfvD6e/T+cFgjf+Q/GnRxL6+RgGm5u7F03uBHkhbj5tPhs= Received: by 10.54.35.79 with SMTP id i79mr123522wri; Thu, 18 Nov 2004 13:10:24 -0800 (PST) Received: by 10.54.5.51 with HTTP; Thu, 18 Nov 2004 13:10:23 -0800 (PST) Message-ID: <1d581afe04111813105e42b319@mail.gmail.com> Date: Thu, 18 Nov 2004 22:10:23 +0100 From: Ian Barwick Reply-To: Ian Barwick To: Nick Peters Subject: Re: Comparing Dates Cc: pgsql-sql@postgresql.org In-Reply-To: <419D0DC6.5080504@candoltd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <419D0DC6.5080504@candoltd.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/181 X-Sequence-Number: 19500 On Thu, 18 Nov 2004 15:01:58 -0600, Nick Peters 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