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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: urgent..! how to combining 2 querries...

RE: urgent..! how to combining 2 querries...

From: Hallas John <John.Hallas_at_btcellnet.net>
Date: Tue, 03 Jul 2001 05:28:05 -0700
Message-ID: <F001.0033FC5F.20010703052022@fatcity.com>

Use the following script
select a.tablespace_name,sum(a.bytes/1024/1024) DF ,

sum(b.bytes/1024/1024) DFS

from dba_data_files a, dba_free_space b

where a.tablespace_name = b.tablespace_name

group by a.tablespace_name

/  

HTH John

-----Original Message-----
Sent: 03 July 01 12:46
To: Multiple recipients of list ORACLE-L

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.  

Saurabh Sharma  

saurabh.sh_at_usa.net <mailto:saurabh.sh_at_usa.net> http://www.geocities.com/saurabh00pc/stride.html <http://www.geocities.com/saurabh00pc/stride.html>



This email and any attachments may be confidential and the subject of legal professional privilege. Any disclosure, use, storage or copying of this email without the consent of the sender is strictly prohibited. Please notify the sender immediately if you are not the intended recipient and then delete the email from your inbox and do not disclose the contents to another person, use, copy or store the information in any medium.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Hallas John
  INET: John.Hallas_at_btcellnet.net
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 - 07:28:05 CDT

Original text of this message

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