MySQL Forums
Forum List  »  MySQL Query Browser

Re: Help with extract and count
Posted by: Samantha Saldanha
Date: August 17, 2010 01:09AM

Hi
I suggest instead of using the extract operator why don't you

Go to your created table by typing
describe [table name];

Check for the variable in the date time format.
Suppose you have a variable say 'invoicedate' in the datetime field in your table.

select count(*) from [table name] where invoicedate >= "2010-08-17 00:00:00 " and invoicedate <= "2010-08-17 23:59:59";

This query will automatically count the number of transactions for the date 17 August. You can vary the time and date accordingly

Options: ReplyQuote


Subject
Written By
Posted
August 16, 2010 05:16AM
Re: Help with extract and count
August 17, 2010 01:09AM


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.