Re: [SQL] group by hour + distinct

2010-11-26 Thread Lew
Michele Petrazzo - Unipex wrote: 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 [sic] command. "subquery" is not an SQL keyword.

Re: [SQL] group by hour + distinct

2010-11-26 Thread Oliveiros d'Azevedo Cristina
Ciao * Olá! 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! * Great to hear it worked

Re: [SQL] group by hour + distinct

2010-11-26 Thread Michele Petrazzo - Unipex
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

Re: [SQL] group by hour + distinct

2010-11-26 Thread Oliveiros d'Azevedo Cristina
1:39 AM Subject: [SQL] group by hour + distinct Hi list, Into a table like this: id_user | my_date and some data inside 1 | 2010/11/25 00:01:00 1 | 2010/11/25 00:02:00 1 | 2010/11/25 01:01:00 2 | 2010/11/25 02:01:00 3 | 2010/11/25 02:01:00 3 | 2010/11/25 02:06:00 1 | 2010/11/25 03:01:00 I'm

[SQL] group by hour + distinct

2010-11-26 Thread Michele Petrazzo - Unipex
Hi list, Into a table like this: id_user | my_date and some data inside 1 | 2010/11/25 00:01:00 1 | 2010/11/25 00:02:00 1 | 2010/11/25 01:01:00 2 | 2010/11/25 02:01:00 3 | 2010/11/25 02:01:00 3 | 2010/11/25 02:06:00 1 | 2010/11/25 03:01:00 I'm looking for a query that say me, hour per hour, how