Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjSKx-0004F5-85 for pgsql-general@arkaria.postgresql.org; Tue, 15 Jan 2019 17:17:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjSKv-0000tM-0s for pgsql-general@arkaria.postgresql.org; Tue, 15 Jan 2019 17:17:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjSKu-0000tF-Kb for pgsql-general@lists.postgresql.org; Tue, 15 Jan 2019 17:17:12 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjSKr-0000NZ-N4 for pgsql-general@lists.postgresql.org; Tue, 15 Jan 2019 17:17:11 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 38DBD9934E for ; Tue, 15 Jan 2019 09:17:08 -0800 (PST) Date: Tue, 15 Jan 2019 09:17:08 -0800 (PST) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Refining query statement In-Reply-To: <73a9c7db-f756-6ea6-a785-f4614d2aad84@aklaver.com> Message-ID: References: <73a9c7db-f756-6ea6-a785-f4614d2aad84@aklaver.com> User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 15 Jan 2019, Adrian Klaver wrote: > Use BETWEEN?: > https://www.postgresql.org/docs/10/functions-comparison.html > a BETWEEN x AND y between > > So: > > next_contact BETWEEN '01/01/2019'::date AND '01/15/2019'::date > > Or a range function: > > https://www.postgresql.org/docs/10/functions-range.html Adrian, Ah, yes! I do need to refresh my SQL knowledge and am working on that. Thanks very much again, Rich