| From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
|---|---|
| To: | Adam Jensen <hanzer(at)riseup(dot)net> |
| Cc: | "pgsql-sql(at)lists(dot)postgresql(dot)org" <pgsql-sql(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: interval origami |
| Date: | 2018-11-30 17:57:19 |
| Message-ID: | 20181130175719.l7izv65wjwgkls35@alvherre.pgsql |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
On 2018-Nov-30, Adam Jensen wrote:
> A relational database solution is needed. I am not yet very familiar
> with relational database design and SQL beyond the very basics. So any
> pointers to similar SQL problems with solutions and explanations would
> be tremendously useful at this point. Any hints at all, really, will be
> much appreciated.
This sounds like something you can easily do with range types in
Postgres. Probably not terribly portable to other DBMSs though.
https://www.postgresql.org/docs/11/rangetypes.html
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adam Jensen | 2018-11-30 20:19:10 | Re: interval origami |
| Previous Message | Adam Jensen | 2018-11-30 17:52:31 | interval origami |