Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Merge 2 select statements ?
Thank you Sooo much , i like the second one and changed it little bit
like following for the testing.
select
ename ,
sal,
comm,
(case when sal =1600 and comm = 300 then 4 when sal = 1250 and comm =
500 then 1 else 0 end ) as Rate
from emp where sal <> 0
order by rate desc, ename ;
it works well.
I really appreciate your help
Jeff
Thomas Kellerer wrote:
> mhk schrieb:
>
>> Thanks but , >> >> As i said earlier i need to merge two tough separate select statement >> in reality.
>> Please help me in merging this following select Statements >> >> >> select ename, '3' As rate from emp where sal = 950; >> >> other is >> >> select ename, '1' As rate from emp where sal = 11950; >> >>