X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C41019FB2E3 for ; Tue, 11 Jul 2006 00:52:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 62982-01 for ; Tue, 11 Jul 2006 00:52:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from weatherbeeta.com.au (mail.weatherbeeta.com.au [202.154.127.242]) by postgresql.org (Postfix) with SMTP id B2B279FB2E2 for ; Tue, 11 Jul 2006 00:52:01 -0300 (ADT) Received: (qmail 30156 invoked from network); 11 Jul 2006 03:51:59 -0000 X-NetworkBox-HamSign: 0101;OUT;wbeetaau1;d093d42af5e71d4bb081b67c0b588da6; Received: from mail.weatherbeeta.com.au (HELO wb-email) (172.20.0.2)by network-box.weatherbeeta.com.au with SMTP; 11 Jul 2006 03:51:59 -0000 Received: from it-phil.weatherbeeta.com.au ([172.20.0.155]) by wb-email (602Pro LAN SUITE 2003) id 2d560c7c for pgsql-sql@postgresql.org; Tue, 11 Jul 2006 13:50:06 +1000 From: "Phillip Smith" To: Subject: Re: Select Maths Date: Tue, 11 Jul 2006 13:51:18 +1000 Message-ID: <00d301c6a49d$448cb290$9b0014ac@ITPhil> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00D4_01C6A4F1.1638C290" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Scanned-By-wbeetaau1: Virus scan performed by network-box X-Scanned-By-wbeetaau1: Scanner file id is wbeetaau1-1152589919.668-30151-000 X-Scanned-By-wbeetaau1: No known viruses found in message (received+scanned in 0.04/0.10 secs) X-Scanned-By-wbeetaau1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/170 X-Sequence-Number: 25744 This is a multi-part message in MIME format. ------=_NextPart_000_00D4_01C6A4F1.1638C290 Content-Type: text/plain;charset="us-ascii" Content-Transfer-Encoding: 7bit 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.bono@gmail.com [mailto:aaron.bono@gmail.com] On Behalf Of Aaron Bono Sent: Tuesday, 11 July 2006 13:42 To: Phillip Smith Cc: pgsql-sql@postgresql.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 ------=_NextPart_000_00D4_01C6A4F1.1638C290 Content-Type: text/html;charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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.bono@gmail.com [mailto:aaron.bono@gmail.com] On Behalf Of Aaron = Bono
Sent:
Tuesday, 11 July 2006 13:42
To: Phillip Smith
Cc: = pgsql-sql@postgresql.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
------=_NextPart_000_00D4_01C6A4F1.1638C290--