From: Michele Petrazzo - Unipex <michele.petrazzo@unipex.it>
To: Oliveiros d'Azevedo Cristina <oliveiros.cristina@marktest.pt>
Cc: pgsql-sql@postgresql.org
Subject: Re: group by hour + distinct
Date: Fri, 26 Nov 2010 13:42:55 +0100
Message-ID: <4CEFAB4F.6000109@unipex.it> (raw)
In-Reply-To: <FC442338870D492A930770CD23660616@marktestcr.marktest.pt>
References: <4CEF9C66.30100@unipex.it>
<FC442338870D492A930770CD23660616@marktestcr.marktest.pt>
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.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: michele.petrazzo@unipex.it, oliveiros.cristina@marktest.pt
Subject: Re: group by hour + distinct
In-Reply-To: <4CEFAB4F.6000109@unipex.it>
* 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