From: stan <stanb@panix.com>
To: pgsql-general@lists.postgresql.org
Subject: Storing a time interval
Date: Fri, 8 Nov 2019 14:43:07 -0500
Message-ID: <20191108194307.GA16920@panix.com> (raw)
I need to create a table to store terms and conditions for purchase
orders.
Some of the attributes of a PO include payment terms. Quite often these will
be 2 periods associated with these, the first is a period on which if you
pay, you receive a discount, and the 2nd is when payment is due with no
discount. I am thinking of storing these two attributes as time internals.
What is the wisdom as to how to declare the type of these columns?
--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
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: stanb@panix.com
Subject: Re: Storing a time interval
In-Reply-To: <20191108194307.GA16920@panix.com>
References: <20191108194307.GA16920@panix.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