MySQL Forums
Forum List  »  Newbie

Re: SELECT, DATETIME and checking result counts
Posted by: Shantanu Oak
Date: March 28, 2005 08:02PM

I think you need to create a temporary table populating the first 5 values of the Hour part of datetime.
Then left join the table with original table where temp.hourpart matches with the original_table.hourpart.

Options: ReplyQuote




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.