Re: [SQL] `statistical' aggregate functions etc. - Mailing list pgsql-sql

From Aleksey Dashevsky
Subject Re: [SQL] `statistical' aggregate functions etc.
Date
Msg-id Pine.LNX.3.96.SK.981022114131.16974A-100000@kesha.luckynet.co.il
Whole thread Raw
In response to `statistical' aggregate functions etc.  (Ulf Mehlig <umehlig@uni-bremen.de>)
List 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);


pgsql-sql by date:

Previous
From: ÈÙ¹ó
Date:
Subject: Help me ,Thank you !!
Next
From: Gregor Zych
Date:
Subject: Probs with arrays