Answers for "mysql sum based on condition"

SQL
3

mysql sum with if

SELECT SUM(IF( `column` = 1, `column`, 0)) as total
Posted by: Guest on May-21-2021

Code answers related to "mysql sum based on condition"

Code answers related to "SQL"

Browse Popular Code Answers by Language