mysql sum with if

Solutions on MaxInterview for mysql sum with if by the best coders in the world

showing results for - "mysql sum with if"
Valentina
12 Mar 2018
1SELECT SUM(IF( `column` = 1, `column`, 0)) as total