as Jonathan Petruk said it's working fine.
But it's returning 0 count though it has records in the table between those 2 days.
Let me explain
I have a table called MQMD
I have TSTAMP, MSGID, MSGTYPE as columns.
i have 3 unique MSGTYPEs
they are 1, 8, 9
I need result like this
MessageType count
--------------- -------
1 100
8 65
9 17
Now please correct my query.
Thanks