Re: [SQL] calculating percentages

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Good <tomg(at)admin(dot)nrnet(dot)org>
Cc: "PostgreSQL::SQL List" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] calculating percentages
Date: 1999-07-12 15:06:56
Message-ID: 20270.931792016@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Thomas Good <tomg(at)admin(dot)nrnet(dot)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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-07-12 16:57:19 Re: [SQL] calculating percentages
Previous Message Tom Lane 1999-07-12 15:06:08 Re: [SQL] Stupid question about default time value