Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 9CAA6476EE8 for ; Thu, 13 Jun 2002 16:12:50 -0400 (EDT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id A0668476F32 for ; Thu, 13 Jun 2002 16:03:46 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id PAA08682; Thu, 13 Jun 2002 15:02:55 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "Robson Martins" , Subject: Re: Err sum number with Date ? Date: Thu, 13 Jun 2002 14:59:49 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <003101c21310$c2ccc780$3a3c620a@catnet.com.br> Importance: Normal X-Archive-Number: 200206/91 X-Sequence-Number: 4526 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