Select Case, when no data return
问题 it is possible do a SELECT CASE, decode, nvl or another query function when I need verify if the return of a select query is empty or has a value? For example, I have this: Record | type | id_customer -------+--------+------------- 1 | T | cus1 2 | A | cus2 3 | T | cus3 4 | | cus4 If I do this: select decode(type,'T','Main','A','Adicional','none') from table where record=1; I get Main. If I fo this: select decode(type,'T','Main','A','Adicional','none') from table where record=4; I get none.