Re: [SQL] `statistical' aggregate functions etc.

From: Aleksey Dashevsky <postgres(at)luckynet(dot)co(dot)il>
To: Ulf Mehlig <umehlig(at)uni-bremen(dot)de>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] `statistical' aggregate functions etc.
Date: 1998-10-22 09:45:50
Message-ID: Pine.LNX.3.96.SK.981022114131.16974A-100000@kesha.luckynet.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 19 Oct 1998, Ulf Mehlig wrote:

>
> I'm a novice to postgresql, so please excuse if I'm addressing to the
> wrong mailing list!
>

.....
>
> 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?
>

I think you should try date_part function, which is described in
pgintro(1) man page:
select date_part('month', some_date);

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jan Wieck 1998-10-22 10:04:50 Re: [SQL] `statistical' aggregate functions etc.
Previous Message Gregor Zych 1998-10-21 19:54:40 Probs with arrays