From: Nick Fankhauser <nickf@ontko.com>
To: Robson Martins <robson-martins@bol.com.br>
To: pgsql-admin@postgresql.org
Subject: Re: Err sum number with Date ?
Date: Thu, 13 Jun 2002 14:59:49 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGIEBIFCAA.nickf@ontko.com> (raw)
In-Reply-To: <003101c21310$c2ccc780$3a3c620a@catnet.com.br>
Robson-
In this, and your last question, the problem is that you are using functions
from Microsoft Access. You'll keep running into this until you learn about
the equivalent functions in PostgreSQL.
The PostgreSQL functions are explained here:
http://www.postgresql.org/idocs/index.php?functions.html
You may also want to learn how to create your own functions in case there is
no equivalent:
http://www.postgresql.org/idocs/index.php?sql-createfunction.html
-Nick
--------------------------------------------------------------------------
Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788
Ray Ontko & Co. Software Consulting Services http://www.ontko.com/
-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Robson Martins
Sent: Thursday, June 13, 2002 2:30 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] Err sum number with Date ?
What err ?
Order By (Sum(Qtde)/(1+current_date-Max(Data))) Desc
Regards,
Robson
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-admin@postgresql.org
Cc: nickf@ontko.com, robson-martins@bol.com.br
Subject: Re: Err sum number with Date ?
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGIEBIFCAA.nickf@ontko.com>
References: <003101c21310$c2ccc780$3a3c620a@catnet.com.br> <NEBBLAAHGLEEPCGOBHDGIEBIFCAA.nickf@ontko.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