![]() |
sponsored links |
|
|
sponsored links
|
|
|
3
30th April 19:59
External User
Posts: 1
|
Him Thanks for you answer, at this moment I can't consilidate the two
tables, we are redisign the system, but at this moment I need this datas for a report. I used UNION, but I have the problem that the count(*) when not found rows no print the the hour, If my the hour 3 AM no have rows I need that this hour have 0. Example Results =========== hour | messages ------+--------- 00 | 35 01 | 9 02 | 4 04 | 1 05 | 9 06 | 42 07 | 132 08 | 446 09 | 505 I need ======= hour | messages ------+--------- 00 | 35 01 | 9 02 | 4 03 | 0 04 | 1 05 | 9 06 | 42 07 | 132 08 | 446 09 | 505 ----- Original Message ----- From: "Chris Boget" <chris@wild.net> To: "Viaris hotmail" <viaris@hotmail.com>; <pgsql-novice@postgresql.org> Sent: Friday, November 21, 2003 9:30 AM Subject: Re: [NOVICE] Help for construct Query can't, consolidating types ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org |
|