MySQL Forums
Forum List  »  InnoDB

Re: Select multiple counts of the same table
Posted by: Lalit Shakya
Date: October 04, 2008 05:47AM

Hello this long query is not required use group by

select count(*) from ctjur_documento_externo group by dom_estado;

I am assuming that dom_estado field store the different value 01,02,03,04 if this field name is different change according to that

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Select multiple counts of the same table
3922
October 04, 2008 05:47AM


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.