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: sql query question

Re: sql query question

From: Emmanuel HUMBLOT <e_humblot_at_wanadoo.fr>
Date: 21 Jan 2000 16:58:55 GMT
Message-ID: <01bf6439$9a716760$3601017e@EHM.cirra.fr>


select name,id,city,temp
from (select name, id, rownum row_num from emp) t1, (select city, temp, rownum row_num from forcast) t2 where t1.row_num=t2.row_num;

--
Regards

Emmanuel HUMBLOT e_humblot_at_wanadoo.fr

GreyWolf_69 <GreyWolf_69_at_alloymail.com> a écrit dans l'article <38887456.571BD9AF_at_alloymail.com>...
> Hi,
> I was wondering if there was a way to have two different queries in
> a script
> that would write the results to the same line(s) in a file? The two
> queries don't have
> any common keys or fields.
>
> ex:
>
> query one: select name, id from emp;
> query two: select city, temp from forcast;
>
> ex of output that I'm looking for:
>
> name id city temp
> Don 001 Taos 85
>
> TIA,
>
> Grey
>
>
>
>
Received on Fri Jan 21 2000 - 10:58:55 CST

Original text of this message

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