Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 6A086476F0D for ; Thu, 13 Jun 2002 15:32:02 -0400 (EDT) Received: from studer.bol.com.br (studer.bol.com.br [200.221.24.21]) by postgresql.org (Postfix) with ESMTP id 7429947701B for ; Thu, 13 Jun 2002 15:28:42 -0400 (EDT) Received: from desenvolv (200.221.24.99) by studer.bol.com.br (5.1.071) id 3CFE81FC00326C69 for pgsql-admin@postgresql.org; Thu, 13 Jun 2002 16:28:07 -0300 Message-ID: <001a01c21310$8f7f8a20$3a3c620a@catnet.com.br> From: "Robson Martins" To: Subject: Erro sum + date ? Date: Thu, 13 Jun 2002 16:28:41 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C212F7.61217580" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Sender-IP: 200.245.222.20 X-Archive-Number: 200206/87 X-Sequence-Number: 4522 This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C212F7.61217580 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable What err ? Order By (Sum(Qtde)/(1+current_date-Max(Data))) Desc Regards, Robson ------=_NextPart_000_0013_01C212F7.61217580 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
What err ?
 
Order By (Sum(Qtde)/(1+current_date-Max(Da= ta)))=20 Desc
 
 
Regards,
 
Robson
------=_NextPart_000_0013_01C212F7.61217580--