Received: from mail1.panix.com (mail1.panix.com [166.84.0.212]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA03394 for ; Mon, 12 Jul 1999 11:52:37 -0400 (EDT) (envelope-from tomg@nrnet.org) Received: from mailhost.nrnet.org (tomg@mailhost.nrnet.org [166.84.192.39]) by mail1.panix.com (8.8.8/8.8.8/PanixM1.3) with ESMTP id LAA20137; Mon, 12 Jul 1999 11:52:34 -0400 (EDT) Received: from localhost (tomg@localhost) by mailhost.nrnet.org (8.8.7/8.8.4) with SMTP id KAA16771; Mon, 12 Jul 1999 10:50:28 -0400 Date: Mon, 12 Jul 1999 10:50:27 -0400 (EDT) From: Thomas Good To: Tom Lane cc: Thomas Good , "PostgreSQL::SQL List" Subject: Re: [SQL] calculating percentages In-Reply-To: <20270.931792016@sss.pgh.pa.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 12 Jul 1999, Tom Lane wrote: > Thomas Good writes: > > How does one do this: SELECT (current_value/target) * 100; > > in postgres? > Pretty much just like that. What problem are you having? > > regards, tom lane The divison rtns 0, which multiplied by 100, rtns 0. It's neat. But not quite the dramatic proof (of the efficacy of our treatment) that my superiors are looking for! ------- North Richmond Community Mental Health Center ------- Thomas Good MIS Coordinator Vital Signs: tomg@ { admin | q8 } .nrnet.org Phone: 718-354-5528 Fax: 718-354-5056 /* Member: Computer Professionals For Social Responsibility */