Sql select case when exists oracle. The CASE statement can be used in Oracle/PLSQL.