MySQL Forums
Forum List  »  Stored Procedures

DATETIME help
Posted by: Shawn Bijou
Date: April 13, 2005 04:25PM

Hi everyone,

here is the sql statement I am running:

select convert(varchar(5), last_mod_tmstmp, 108 ), count(*)
from pim_pim2ssb_trans
group by proc_status, last_mod_tmstmp

Here is the output that I get:

07:03 1
07:03 21
09:06 10
09:06 6
14:06 605
14:06 243

I need to find a way to merge the the records with the same minutes together. Since the seconds are different another record was created. Please help.

Thanks,

Shawn

Options: ReplyQuote


Subject
Views
Written By
Posted
DATETIME help
3192
April 13, 2005 04:25PM
2203
April 14, 2005 02:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.