Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Merge 2 select statements ?

Re: Merge 2 select statements ?

From: mhk <cccssss_at_dddsssl.com>
Date: Thu, 27 Nov 2003 14:49:24 -0600
Message-ID: <3FC66354.2080602@dddsssl.com>


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;

i Hope now its clear, as now u cannot use your previous statement.

Please help ,

Thanks

Jeff


Thomas Kellerer wrote:
>
>
> mhk schrieb:
>

>> Hi,
>>
>> can anyone know how to merge two select statements into one
>>
>> Example :
>>
>> "select * from emp where location_id = 1"
>> other is
>> "select * from emp where location_id = 2"
>>
>> Now how can i merge these two with a single select statement. its a 
>> simple example but i am using a tough one in reality.
>>
>> Thanks
>>
>>
>> Jeff
>>

>
> select * from emp where location_id in (1,2)
>
>
Received on Thu Nov 27 2003 - 14:49:24 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US