select 1 from dual
where exists (select 1 from emp where name like '%Smith%' )
union
select 0 from dual
where not exists (select 1 from emp where name like '%Smith%' )
|
Results 1 to 4 of 4
Threaded View
|
Click Here to Expand Forum to Full Width |