pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Good <tomg@nrnet.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Thomas Good <tomg@admin.nrnet.org>
Cc: PostgreSQL::SQL List <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] calculating percentages
Date: Mon, 12 Jul 1999 10:50:27 -0400 (EDT)
Message-ID: <Pine.LNX.3.96.990712104853.16755A-100000@mailhost.nrnet.org> (raw)
In-Reply-To: <20270.931792016@sss.pgh.pa.us>

On Mon, 12 Jul 1999, Tom Lane wrote:

> Thomas Good <tomg@admin.nrnet.org> 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 */ 




view thread (13+ messages)  latest in thread

Message-ID: <Pine.LNX.3.96.990712104853.16755A-100000@mailhost.nrnet.org>
Permalink:  ../Pine.LNX.3.96.990712104853.16755A-100000@mailhost.nrnet.org/
Also on:    postgresql.org/message-id/Pine.LNX.3.96.990712104853.16755A-100000@mailhost.nrnet.org

 · 

reply

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-sql@postgresql.org
  Cc: tomg@nrnet.org, tgl@sss.pgh.pa.us, tomg@admin.nrnet.org
  Subject: Re: [SQL] calculating percentages
  In-Reply-To: <Pine.LNX.3.96.990712104853.16755A-100000@mailhost.nrnet.org>
  References: <20270.931792016@sss.pgh.pa.us> <Pine.LNX.3.96.990712104853.16755A-100000@mailhost.nrnet.org>

* 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