Excellent!!
It's working nice, But i have a question, the query has return me the following result
db2 => SELECT HOUR(TSTAMP), COUNT(MSGID) FROM DB2.MQMD WHERE DATE(TSTAMP)=DATE('2004-04-07-00.00.00') GROUP BY HOUR(TSTAMP)
1 2
----------- -----------
0 94
1 96
2 96
3 96
4 96
5 96
6 104
7 145
8 123
9 record(s) selected.
Does it mean that it has count from 00:00 - 08:59?
Please clarify this!
Thanks