Re: group by hour + distinct

From: Michele Petrazzo - Unipex <michele(dot)petrazzo(at)unipex(dot)it>
To: Oliveiros d'Azevedo Cristina <oliveiros(dot)cristina(at)marktest(dot)pt>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: group by hour + distinct
Date: 2010-11-26 12:42:55
Message-ID: 4CEFAB4F.6000109@unipex.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Oliveiros d'Azevedo Cristina ha scritto:
> Howdy, Michelle,
>

Ciao

> for each hour it will count the number of distinct user_id's there
> are . If I understood correctly what you need...
>
> Can you please test it and see if it is OK for your needs? With me,
> it worked on the sample data you provided
>

Yes! Simply perfect!

> Best, Oliver
>

Thanks,
Michele

P.s. Have you some references about the "subquery" keyword? I found only
the word subquery as "use" (for example: select a from b where id in
(select id from table)), but not as sql command.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Oliveiros d'Azevedo Cristina 2010-11-26 13:15:14 Re: group by hour + distinct
Previous Message Oliveiros d'Azevedo Cristina 2010-11-26 12:19:06 Re: group by hour + distinct