From: Ulf Mehlig <umehlig@uni-bremen.de>
To: pgsql-sql@postgreSQL.org
Subject: `statistical' aggregate functions etc.
Date: Mon, 19 Oct 1998 09:39:47 +0200
Message-ID: <199810190739.JAA01739@uni-bremen.de> (raw)
I'm a novice to postgresql, so please excuse if I'm addressing to the
wrong mailing list!
I need to specify some column functions for statistical analysis,
e.g. standard deviation or variance. After reading the user's guideI
think that's to realize with aggregates, but with those docs only I
cannot figure out how to do it -- does anybody know whether there is a
ready-for-use "statistics" package, or how to write something that's
usable in a SQL statement like this:
select date, avg(temperature), stddev(temperature)
from temperatures
where date between '01.01.1999' and '15.02.1999'
group by date ?
Other question: I'm used to use DB2/2, and DB2/2 has functions like
"month(some_date)" and "hour(some_timestamp)". Are there equivalents
in postgresql?
Many thanks in advance for help + patience!
Ulf
--
======================================================================
%%%%% Ulf Mehlig <ulf.mehlig@uni-bremen.de>
%%%%!%%% Projekt "MADAM" <umehlig@uni-bremen.de>
%%%% %!% %%%% ----------------------------------------------------
---| %%% MADAM: MAngrove | Center for Tropical Marine
||--%!% Dynamics | Biology
|| And | Fahrenheitstrasse 1
_ /||\_/\_ Management |
/ / \ \ ~~~~~~~~~~~~~~~~~ | 28359 Bremen/Germany
~~~~~~~~~~~~~~~~~~~~
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: umehlig@uni-bremen.de
Subject: Re: `statistical' aggregate functions etc.
In-Reply-To: <199810190739.JAA01739@uni-bremen.de>
References: <199810190739.JAA01739@uni-bremen.de>
* 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