Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: urgent..! how to combining 2 querries...
Hi!
Try this.
select a.tablespace_name,sum(a.bytes),sum(b.bytes) from dba_data_files a, dba_free_space b where b.tablespace_name=a.tablespace_name group by a.tablespace_name
Gyula
>hi gurus,
>
>any body have any idea of how to join these querries.
>i want to select from two different tables namely dba_data_files call it A
and dba_free_space call it B. but the columns
>being selected are same i.e. tablespace_name and bytes from both tables.
>i want to select in a single querry as..
>
> tablespace_name bytes1 bytes2
> -- --
>-- -- --
>-- -- --
>
>where bytes1 is sum(bytes) group by tablespace_name in table a.
>and bytes2 is sum(bytes) group by tablespace_name in table b.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: gy.andor_at_euromacc.hu Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Jul 03 2001 - 06:44:27 CDT
![]() |
![]() |