MySQL Forums
Forum List  »  Newbie

sql-command
Posted by: oliver voegeli
Date: August 08, 2005 03:47AM

hello everybody

I've got a simple tabe:

ID answer (boolean)
1 0
2 1
3 1
4 0
etc.

is it possible to retreive within one sql-command the count of all records with the answer = 0 and the count of all records with the answer = 1?

greetz
oliver

Options: ReplyQuote


Subject
Written By
Posted
sql-command
August 08, 2005 03:47AM
August 08, 2005 03:52AM
August 08, 2005 04:02AM
August 08, 2005 04:08AM
August 08, 2005 05:24AM
August 08, 2005 06:30AM
August 08, 2005 09:29AM


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.