Re: [GENERAL] Calcuate percentage.

From: Kaare Rasmussen <kar(at)webline(dot)dk>
To: pgsql-general(at)hub(dot)org
Subject: Re: [GENERAL] Calcuate percentage.
Date: 1999-03-10 06:14:24
Message-ID: 199903100614.HAA04710@bohr.webline.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> P.S. In oracle, I'd use a sub-query:
>
> SELECT var, COUNT(*) / total_count
> FROM temp,
> ( SELECT COUNT(*) AS total_count
> FROM temp
> )
> GROUP BY var;

I thought that subqueries were allowed in PostgreSQL after 6.2?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Remigiusz Sokolowski 1999-03-10 07:24:46 Re: [GENERAL] i want to start automaticly postgres when a reboot my server...help please.....
Previous Message Michael Davis 1999-03-10 06:05:08 RE: [GENERAL] SQL Question