SQL function Posted on 2024-06-06 In SQL 1. IF()The If function returns different values based on the condition. 1IF(condition, value_if_true, value_if_false) example: 1IF(mem.score is null, 0, mem.score)