Pergunta de entrevista da empresa Geotab

How to write "if" statement in SQL.