How the columns retrive from datebase when u r using joins

Hi,
I am Seetharamaiah.c working in Xansa India Limited. I got a doubt . Pls clarify my doubt when we r retriving the data from database, how the colums retrieve when we r using self join. What exactly internally happen.
Thanking u,
Seetharamaiah.C

use set autotrace on
SQL> set autotrace on
SQL> select dname,ename
from dept d,emp e
where d.deptno = e.deptno;
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 NESTED LOOPS
2 1 TABLE ACCESS (FULL) OF 'EMP'
3 1 TABLE ACCESS (BY INDEX ROWID) OF 'DEPT'
4 3 INDEX (UNIQUE SCAN) OF 'SYS_C0063851' (UNIQUE)
Each row of the emp table is returned and the corresponding dept row is found using the index.
Introduce an outer join:
select dname,ename
from dept d,emp e
where d.deptno = e.deptno(+)
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 MERGE JOIN (OUTER)
2 1 SORT (JOIN)
3 2 TABLE ACCESS (FULL) OF 'DEPT'
4 1 SORT (JOIN)
5 4 TABLE ACCESS (FULL) OF 'EMP'
and you get two full table scans with the results merged to populate the dept with no emp records

Similar Messages

  • How to open document from mac when using windows without transferring the file?

    How can i open a document from mac when i am using windows without transferring it?

    depend on the document program more then anything else really
    when ever I open a doc with word it make a history for undo and redo action file in the same dir
    with bootcamp you only have read not write access to the osx partition so it would fail to be able to create that file
    but if you can get word or whatever program you use to open the file not to place a temp file in the same dir
    or use a program which did not make any type of temp file or used a program where the temp file would be located elsewhere where you decide it would work file

  • How can we change the column sequence from 1st to 7th position

    Hi
    I have a table in which I have a column naming DNAME and it is is on the first position I want to change its position to 7 that is the last one. The table is huge filled with data.
    Is there ant way in which I can cange the position of the column with out recreating in into another table and then renaming it.
    Thanks

    Hello,
    The sequence of a column in a table is meaningless and you should treat it as such. The column ordering you see when you run a "select * from ..." query is based on the physical implementation of the table, which is completely separate from the logical interpretation, and should not be relied on in a programmatic context. It should essentially be viewed as "random" and prone to change with the physical storage properties of the table (although this is not always the case, there is no assurance of this).
    One way to do this (which happens to be the easiest and least resource-intensive in this case) is to create a view (derived relation) of the base table, with the columns ordered in the specific sequence you desire. But really, the column ordering here is still meaningless, and the only time your application should rely on the order is when you specifically list the columns you require in a query -- but NEVER a "select *".
    cheers,
    Anthony

  • How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    Try running Pandora in its own tab and leaving that tab open (Safari 7.1.5, OS 10.9.5).  I don't have Pandora to try this, but it works for me otherwise.
    Good luck
    srb

  • How to rotate pictures from iphone  when you put them on the computer

    how to rotate pictures from iphone  when you put them on the computer

    The program you use on your computer to view the picture might have a feature to allow you to rotate the photo

  • How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?

    How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?
    We have to set up a scenario for sending "Customer returned" products from branches to Central DC through STO. But we do not want GATP check for these STOs, as they are Customer Returns, which need to analyze at CDC for further actions. We are using SCM 7.0 and ECC 6.0
    Thanks in advance,
    Ravi

    Hi,
    You can exclude the "customer returned" category from the scope of check from that particular Check control

  • How the ASR memory options shipped when bought as spares?

    Does anyone knows how the ASR memory options shipped when bought as spares?
    Can i insert a 2GB memory on the ASR 1002-X as stated in the memory options in this link, http://www.cisco.com/c/en/us/products/collateral/routers/asr-1000-series-aggregation-services-routers/data_sheet_c78-441072.htmlIf yes, then what could be the part code number?
    Can I just upgrade the ASR 1002-X from 4GB to 6GB of memory instead of 8GB?
    Can you clarify if i will choose the following part codes, how will this be shipped?
    M-ASR1002X-4GB=, 2 units 2GB memory or 1 unit 4GB?
    M-ASR1002X-8GB=, 4 units 2GB memory or 2 units 4GB?
    M-ASR1002X-16GB=, 4 units 4GB memory?
    And last, how can we insert memory on the ASR 1002-X, does it needs to have identical memory installed for the 4 slots, or we can just upgrade it like, 2 x 2GB installed on the first slot and then i'll add 1 x 4GB?
    Thank you!

    Hello, Jessica. 
    The Cisco 1000 ASR series RP memory spares are usually sold as pairs. For example, 2GB (M-ASR1K-RP1-2GB=) are sold as a pair of 1 GB modules and the 4 GB memory spare (M-ASR1K-RP1-4GB=) is sold as a pair of 2 GB modules. It would be best to verify this with your Cisco sales representative. Are you already working with any Cisco partner or rep about this one, by the way?
    Let me know if you have additional concerns or e-mail ([email protected]) me directly. Kind regards. 

  • How to stop iphone from autoplay when plug into car audio system usb?

    how to stop iphone from autoplaying when connected to your car audio USB ?

    You need to remove the association that Windows has with that particular file type. To do that, you need to open Windows Explorer. From there, click on Tools, then Folder options. Click on the tab that is named file types. You then need to find the extension for the photos that appear in the iPhone, then click that registered file type. Once you do that, there is a section to select the program to open that file type with. You can click on the change button, and that will allow you to change the program that it opens with, or restore the default. There is also a box that can be checked to always use the selected program. If you unselect it, it will prompt you next time on what program to use.
    Hope this helps.

  • Query the column names from Public database links

    Greetings,
    I would like to retrieve the list of all the column names from a public database link. A regular ALL_TAB_COLUMNS doesn't seem to be working.
    Thanks
    John9569

    Hi,
    I think your DBA needed to create a synonym for you to have access of that remote database view.
    CREATE SYNONYM synonym_name
    FOR view_name@db_link;Then you can find the column names by
    DESC   synonym_nameGuru's , please correct me If I am wrong.
    Thanks
    Edited by: user10679113 on Mar 12, 2009 12:28 PM
    Edited by: user10679113 on Mar 12, 2009 12:33 PM

  • B2B Arch - How the Messages move from the Servlet to IP_IN_QUEUE

    Hi all,
    I am having one basic architectural question.
    We have defined the Host Trading partner with the Delivery channel having the URI for the transport as b2b/transportServlet. While creating the agreement between this host trading partner with the other remote trading partner, we are using the standard Internal delivery channel as B2B Inbound, as we are doing the inbound interface. So, whatever the Inbound messages is coming from the remote trading partner it will enqueued into IP_IN_QUEUE.
    I referred some of the documents, to know the architectural details how the message come into the IP_IN_QUEUE. Those document says that b2b/transportServlet is the entry point for all the Inbound messages. Please correct me if I am wrong. I am more interested to know what are all the intermediate steps involved in the movement fo the message from the b2b/transportServlet to IP_IN_QUEUE. Basically how the message move from b2b/transportServlet to the IP_IN_QUEUE.

    Hi,
    The transportServlet hand over the b2b message via RMI to the B2B Server. The B2B Server then process this message and delivers it to the IP_IN_QUEUE.
    Eng

  • How do I change the sound that is played when you iI use the Find my IPhone feature to make it alot louder?  The current sound is very faint, difficult to find as I am hard of hearing.

    How do I change the sound that is played when you I use the Find my IPhone feature to make it alot louder?  The current sound is very faint, difficult to find as I am hard of hearing.

    Hi,
    Tap the iPod icon in the Dock. Then tap the Airplay icon just to the right of the volume slider.
    Make sure the iPad speakers are selected, not your wireless.
    Carolyn 

  • Hi,does anyone know how the Iwatch will play music when it is not near a bluetooth device as it is stated in the feature setting..Icloud streaming,internal hard drive?

    Hi,does anyone know how the Iwatch will play music when it is not near a bluetooth device as it is stated in the feature setting..Icloud streaming,internal hard drive?

    I did not hear them state the feature requirements directly in the streaming even but there are statements on the Apple website that clearly say that an iPhone is necessary.  I'm guessing that other than Bluetooth for pairing with the iPhone, it's just not technically possible to fit any other radios such as WiFi or LTE into that form factor or battery capacity.  I don't even remember them mentioning if it had a speaker or could pair directly with bluetooth headphones.
    While I'm hoping that the watch has a reasonable stand-alone feature set, they didn't make it clear what exactly it can and can't do without an iPhone nearby.  I also hope that they communicate this better in the coming days.

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • How AP behaves for withholding tax when vertax is used for tax calculation

    Hi,
    I am currently working on R12 implementation, I have requirement where business has to calculate the USE tax and withhold it from being paid to the supplier in case if use tax is not mentioned on the Invoice and pay it to tax authorities directly by business. Our client has Vertax third party tax engine. now the question is does it works same as it is in oracle payables in cases if client want to use vertax to calculate tax. How oracle behaves for withholding tax when vertax is used for tax calculations.
    Regards,
    Shashi.

    Hi
    Cheque Go to Menubar of  which document you have to  post for getting the WHT value  Menubar Settings - editing options -  remove the tick calculate tax on net amount.
    Rgds
    Vani

  • How to get data from a USB-UIRT device using Labview?

    How to get data from a USB-UIRT device using Labview?
    I'm trying to get data from a USB-UIRT device, is it posible with Labview?
    I really appreciate your help, 
    thanks

    You may want to contact the developer of the device for the API and DLL.
    http://65.36.202.170/phpBB2/viewforum.php?f=3

Maybe you are looking for

  • Running app when db is down

    Hi, Our application is built on web services which is not totally relied on db (application modules). In one of the page to validate the data against database table, we created a db connection and created vo and used in AM to find out the existence o

  • Exchange 2007 Multiple Send Connector Cost Best Practice

    Hi,<o:p></o:p> I am running exchange 2007 SP2 and have 2x exchange connectors set up with an equal default cost of 1.<o:p></o:p> Connector 1 is set to * address space and should forward all emails to two email security/management servers<o:p></o:p> C

  • Downgrade to ios 5.1.1 from ios 6

    please help me i have problem whith my ipad 3 i just upgrade to ios 6. , and i am not happy, i have problems with battery, speed internet, programs, everityng, i just whanth to but back ios 5.1.1, how can i do this, please hepl me

  • 9.0.6 crash - import dialog

    Hi all, After upgrading yesterday, iMovie will no longer work. I don't have the file that others have mentioned in my quicktime library, and I've also run iphoto since the update but it still crashes. In particular, anytime I try and bring up the imp

  • How should I print the full document though e-print?

    Dear Sir, I am totally confused about e-print facility. I tried to send an e print  e-mail through my mailing id from Nokia phone. But I found that the e-print facility worked on my printer but only the body of the e-mail was printed and nobody will