From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Refining query statement
Date: Thu, 17 Jan 2019 08:46:54 -0800 (PST)
Message-ID: <alpine.LNX.2.20.1901170842150.13573@salmo.appl-ecosys.com> (raw)
In-Reply-To: <CAKFQuwZFgogSc1Td0hXz7Jtzn3YvFisDEnPL6+3NLO1O7hsnkA@mail.gmail.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>
On Thu, 17 Jan 2019, David G. Johnston wrote:
> Why is next_contact allowed to be null?
David,
There are a number of reasons. The prospect might have retired, told me to
pound sand, or has put off a decision.
> Your concept of "most current row" is strictly based upon next_contact so
> if next_contact is null it is impossible to know whether it is the most
> current row (consider that two activities could be missing the
> next_contact date - which of those is the most current?)
That's quite true. I realize I've been asking the question incorrectly.
What I want is a list of contacts to make today. This includes ones that
should have been made earlier but weren't and excludes earlier contacts that
have no scheduled next contact (therefore, the nulls.).
Does this clarify what I'm asking of the data?
Thanks,
Rich
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.1901170842150.13573@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>
* 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