SQL

MySQL IF() Function

Return "YES" if the condition is TRUE, or "NO" if the condition is FALSE: