mysql if example
snippet in sql

mysql if example

user1512

SELECT SUM(IF(user.name LIKE '%bob%',1,0)) AS `total_bobs`,