From: | "Phillip Smith" <phillips(at)weatherbeeta(dot)com(dot)au> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Select Maths |
Date: | 2006-07-11 03:51:18 |
Message-ID: | 00d301c6a49d$448cb290$9b0014ac@ITPhil |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
It ties back to my other post about the "FLAGS" column - I need to be able
to find out if the original pqty() calculation has needed to be modified.
I guess what you're saying is to have 2 functions - one that calculates the
figure I have at the moment, then a second to return the adjusted figure?
Then I can use the first function when I'm working out what the flags need
to be, then the second to give the actual adjusted figure..
-p
-----Original Message-----
From: aaron(dot)bono(at)gmail(dot)com [mailto:aaron(dot)bono(at)gmail(dot)com] On Behalf Of Aaron
Bono
Sent: Tuesday, 11 July 2006 13:42
To: Phillip Smith
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Select Maths
Why wouldn't you be able to do this in a function? Pass in stock.code,
stock.purchase_unit, stock.box_qty and creditors.review_cycle . You can
then use variables in the function, right?
-Aaron
*******************Confidentiality and Privilege Notice*******************
The material contained in this message is privileged and confidential to
the addressee. If you are not the addressee indicated in this message or
responsible for delivery of the message to such person, you may not copy
or deliver this message to anyone, and you should destroy it and kindly
notify the sender by reply email.
Information in this message that does not relate to the official business
of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta.
Weatherbeeta, its employees, contractors or associates shall not be liable
for direct, indirect or consequential loss arising from transmission of this
message or any attachments
From | Date | Subject | |
---|---|---|---|
Next Message | Aaron Bono | 2006-07-11 04:11:16 | Re: Can function results be used in WHERE? |
Previous Message | Aaron Bono | 2006-07-11 03:41:34 | Re: Select Maths |