CASE « Control Flow Functions « MySQL Tutorial






18.2.CASE
18.2.1.CASE with value
18.2.2.CASE with condition
18.2.3.CASE with case-sensitve comparison
18.2.4.Using CASE to switch the employee id
18.2.5.A SUM() function can be added to CASE statement to give us the total