pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Refining query statement
Date: Tue, 15 Jan 2019 09:17:08 -0800 (PST)
Message-ID: <alpine.LNX.2.20.1901150915480.5845@salmo.appl-ecosys.com> (raw)
In-Reply-To: <73a9c7db-f756-6ea6-a785-f4614d2aad84@aklaver.com>
References: <alpine.LNX.2.20.1901150738320.5845@salmo.appl-ecosys.com>
	<bf7e79c6-0fa4-f730-dfdc-175576db8d66@aklaver.com>
	<alpine.LNX.2.20.1901150824360.5845@salmo.appl-ecosys.com>
	<73a9c7db-f756-6ea6-a785-f4614d2aad84@aklaver.com>

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




view thread (32+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.1901150915480.5845@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.1901150915480.5845@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.1901150915480.5845@salmo.appl-ecosys.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: rshepard@appl-ecosys.com
  Subject: Re: Refining query statement
  In-Reply-To: <alpine.LNX.2.20.1901150915480.5845@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.1901150738320.5845@salmo.appl-ecosys.com> <bf7e79c6-0fa4-f730-dfdc-175576db8d66@aklaver.com> <alpine.LNX.2.20.1901150824360.5845@salmo.appl-ecosys.com> <73a9c7db-f756-6ea6-a785-f4614d2aad84@aklaver.com> <alpine.LNX.2.20.1901150915480.5845@salmo.appl-ecosys.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