Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id E26F4476F63 for ; Thu, 13 Jun 2002 15:32:09 -0400 (EDT) Received: from studer.bol.com.br (studer.bol.com.br [200.221.24.21]) by postgresql.org (Postfix) with ESMTP id B02044769F1 for ; Thu, 13 Jun 2002 15:29:57 -0400 (EDT) Received: from desenvolv (200.221.24.99) by studer.bol.com.br (5.1.071) id 3CFE81FC00326E33 for pgsql-admin@postgresql.org; Thu, 13 Jun 2002 16:29:33 -0300 Message-ID: <003101c21310$c2ccc780$3a3c620a@catnet.com.br> From: "Robson Martins" To: Subject: Err sum number with Date ? Date: Thu, 13 Jun 2002 16:30:22 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002E_01C212F7.9D565CA0" 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/88 X-Sequence-Number: 4523 This is a multi-part message in MIME format. ------=_NextPart_000_002E_01C212F7.9D565CA0 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_002E_01C212F7.9D565CA0 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_002E_01C212F7.9D565CA0--