Если SQL

if condition
then 
	statement;
else if condition
then
	statement;
else condition
	statement;
end if;
Unusual Unicorn