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: Thu, 17 Jan 2019 10:47:21 -0800 (PST)
Message-ID: <alpine.LNX.2.20.1901171043301.18965@salmo.appl-ecosys.com> (raw)
In-Reply-To: <57b49280-c415-f304-f0b5-3b76d8627cc9@aklaver.com>
References: <alpine.LNX.2.20.1901150738320.5845@salmo.appl-ecosys.com>
	<9a5976c8-76da-f06d-9840-5dcf8723e38b@gmx.net>
	<alpine.LNX.2.20.1901170759560.13573@salmo.appl-ecosys.com>
	<CAKFQuwZFgogSc1Td0hXz7Jtzn3YvFisDEnPL6+3NLO1O7hsnkA@mail.gmail.com>
	<alpine.LNX.2.20.1901170842150.13573@salmo.appl-ecosys.com>
	<CAKFQuwaTZKOsMK6DpnuwJ4xbHAgiZqNsHBAHmqGED=g0=DW2kg@mail.gmail.com>
	<alpine.LNX.2.20.1901170857310.18965@salmo.appl-ecosys.com>
	<7cbcfe0e-813e-b25e-f90e-dbf1e04f5076@aklaver.com>
	<alpine.LNX.2.20.1901170958220.18965@salmo.appl-ecosys.com>
	<57b49280-c415-f304-f0b5-3b76d8627cc9@aklaver.com>

On Thu, 17 Jan 2019, Adrian Klaver wrote:

> It would produce results, so yes it would work. The question are they the
> results you want?

Adrian,

   To which the answer is no as I just discovered.

> The above would return anything with a next_contact less then today. That
> could extend backwards to some undetermined point in the past, depending
> on how diligent you where on updating next_contact. Before you go much
> further I would look over the suggestions posted and then sit down with
> pen and paper and figure out what it you want to track and how you are
> going to maintain that tracking. Then draw up an outline of how you will
> achieve that in code.

   I have that tracking defined (who is active and needs a contact today or
earlier) and am now working on how to code it so only the last contact for a
person is examined to determine if the active column = true. I'll ponder
that.

Thanks,

Rich





view thread (32+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.1901171043301.18965@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.1901171043301.18965@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.1901171043301.18965@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.1901171043301.18965@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.1901150738320.5845@salmo.appl-ecosys.com> <9a5976c8-76da-f06d-9840-5dcf8723e38b@gmx.net> <alpine.LNX.2.20.1901170759560.13573@salmo.appl-ecosys.com> <CAKFQuwZFgogSc1Td0hXz7Jtzn3YvFisDEnPL6+3NLO1O7hsnkA@mail.gmail.com> <alpine.LNX.2.20.1901170842150.13573@salmo.appl-ecosys.com> <CAKFQuwaTZKOsMK6DpnuwJ4xbHAgiZqNsHBAHmqGED=g0=DW2kg@mail.gmail.com> <alpine.LNX.2.20.1901170857310.18965@salmo.appl-ecosys.com> <7cbcfe0e-813e-b25e-f90e-dbf1e04f5076@aklaver.com> <alpine.LNX.2.20.1901170958220.18965@salmo.appl-ecosys.com> <57b49280-c415-f304-f0b5-3b76d8627cc9@aklaver.com> <alpine.LNX.2.20.1901171043301.18965@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