script
Monday, February 18, 2013
Count based on condition in mysql
SELECT COUNT(IF(column=3,1,NULL)) AS Count FROM table GROUP BY othercolumn
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment