> 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?
- [GENERAL] Calcuate percentage. Sze Yuen Wong
- Re: [GENERAL] Calcuate percentage. Marcin Grondecki
- Re: [GENERAL] Calcuate percentage. Clark Evans
- Re: [GENERAL] Calcuate percentage. Kaare Rasmussen
- Re: [GENERAL] Calcuate percentage. K.T.
- Re: [GENERAL] Calcuate percentage. Sze Yuen Wong
- Re: [GENERAL] Calcuate percentage. Sze Yuen Wong
- [GENERAL] Table as parameter in function Kaare Rasmussen
- Re: [GENERAL] Calcuate percentage. Kaare Rasmussen
- Re: [GENERAL] Calcuate percentage. Sze Yuen Wong