Tricky math in PSQL - Mailing list pgsql-novice

From Kip Warner
Subject Tricky math in PSQL
Date
Msg-id 1461350695.16482.11.camel@thevertigo.com
Whole thread Raw
Responses Re: Tricky math in PSQL
List pgsql-novice
Hey list,

I am having problems trying to figure out the best way to implement a
complicated function in PostgreSQL. I have tried my best to articulate
my problem here:

    http://pastebin.com/zwWmYMd0

To understand it mathematically is not so hard, but to express it in
PSQL syntax is hard for me.

I am aware that the views and functions I have may not be the most
efficient. I am open to suggestions for those too.

--
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


Attachment

pgsql-novice by date:

Previous
From: Markus Metz
Date:
Subject: Re: postgres connection issues
Next
From: Kevin Grittner
Date:
Subject: Re: Tricky math in PSQL