question about ordered Hint

Oracle 10g
hi all i attended an interview yesterday and i interviewer asked me a couple of questions
For which i dont have an exact answer. i even tried to search on web but i couldn't find the answer.

1. The ordered  hint is used in conjunction with what?  and why?. 
   i explained what ordered hint is but he is not happy.

2. performance of analytical function vs query with sub-query . 

 i voted for analytical function, interviewer said that analytical functions are slow.
Please help me find some answers.

Thank you

Published by: new learning on July 30, 2010 07:17

I don't worry about this.
If this is the kind of thing the interviewer said, it doesn't look like the kind of place you want to work.
And if the interviewer is booked on the precise wording that they were after, it's usually a bad sign.

The flag of the y is used in conjunction with what?

Who knows what it was after exactly?
You could say that it is usually used in conjunction with other indicators to indicate the mechanisms of join and access

Analytical or subquery

Obviously, the correct answer is 'It depends' - it is almost always the right answer :)
I would say that analytical versus subquery easily qualifies for the 80/20 rule (i.e., they earn at least 80% of the time)

But for an example of "how analytics spoil" see here:
http://jonathanlewis.WordPress.com/2009/09/07/analytic-agony/

Tags: Database

Similar Questions

  • Simple question about Append hint

    ORACLE-BASE - title

    The link above, I have just a basic question about add suspicion...

    How the APPEND Hint affects the performance

    The APPEND tip tells the optimizer to perform an access direct-path insert, which improves the performance of INSERT .. SELECT operations for several reasons:

    • Data are added at the end of the table, instead try to use the free space in the table.
    • Data is written directly to the data files, passing the buffer cache.
    • Referential integrity constraints are ignored.

    I wanted to just understand to what extent is the third correct point

    -----------------

    CREATE TABLE emp
    (
    emp_id a PRIMARY KEY/NUMBER
    emp_name VARCHAR2 (100),
    dept_id NUMBER
    );

    CREATE TABLE dept
    (
    dept_id NUMBER PRIMARY KEY,
    dept_name VARCHAR2 (100)
    );

    ALTER TABLE ADD FOREIGN KEY (Dept_id) emp made REFERENCE to Department (Dept_id);


    INSERT / * + append * /.
    IN emp
    Select 1, 'King', 100 from dual;

    COMMIT;

    The insert will definitely give an error

    ORA-02291: integrity constraint (SCOTT. SYS_C0013725324) violated - parent not found key

    Am I missing something here?

    See you soon,.

    Manik.

    sqlldr can and does ignore referential integrity / triggers and same uniqueness in a load path direct, insert / * + append * / doesn't - you do not direct path when they (constraints) exist.


    parallel is always a direct route, if you go in parallel, you add.

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:no:P11_QUESTION_ID:1211797200346279484

  • Question about ordering "suspend."

    About VMware Server 1.0.4 running on Ubuntu, if I do, "vmware-cmd suspend http://path to the .vmx file" , he responds with, "suspend() = 1". This answer means that the virtual machine is completely suspended? Or does this mean that the order has been sent successfully, and that the virtual machine is now in the process of suspension? If it's the latter, is it possible to check for some that the virtual machine is indeed completely suspended?

    Thank you!

    suspend() = 1 means, that the machine has been properly suspended.

    Be very careful with suspension. Prefer the following:

    VMware-cmd /path/to/my/vm.vmx soft stop

    For this the correct stopping down to a VM. Prerequisites: VMWare Tools installed on the client.

  • Question about orders in single-user mode

    Hi all, I am a super novice of mac system.

    I searched the web and the apple community, and I have not found much information on how to use the single user mode.

    All suggested link to read and learn about the single-user mode and terminal?

    What you trying to accomplish?

    Single user mode is a shell capable of functioning when things on the hardware have problems.

    It is not a fully functional shell, it is intended for solving problems.

    Terminal on the other hand maybe you want to explore. There are many ex http://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line resources

  • Question about order

    In Dreamweaver, the branches and the leaves appear in the foreground.

    In FireFox, it does not work: branches on green and white (= OK) + behind blue branches (= not OK).

    The order also does not work on my screen. (in DW + FireFox)

    What I am doing wrong. Does anyone have a suggestion?

    DW live screen:

    wwww1.jpg

    FireFox:

    wwww2.jpg

    HTML--------------------------------------------------

    <! doctype html >

    < html >

    < head >

    < meta charset = "utf-8" >

    < title > Bl bla * home * < /title >

    < link href = "Css/layout - 01.css" rel = "stylesheet" type = "text/css" >

    < style type = "text/css" > < / style >

    < / head >

    < body >

    < div id = "Container" > <!-KopContainer start->

    < div id = 'Logo-1' > < / div >

    < / div > <! - Einde KopContainer - >

    < div id = "BodyMidden" >

    < div id = 'Menu' >

    < ul >

    < li > < a href = "Index.html" > home < /a > < /li >

    < li > < a href = "Link - 01.html" > link-01 < /a > < /li >

    < li > < a href = 'Link-02' > link-02 < /a > < /li >

    < li > < a href = 'Link - facts03.htm' > link-03 < /a > < /li >

    < li > < a href = "Link - 04.html" > link-04 < /a > < /li >

    < /ul >

    < / div >

    < div id = "BodyMidTekst" >

    HOME < p > < /p >

    < p > in Dreamweaver < span id = "result_box" lang = "fr" > branches and leaves are shown in the foreground. < / span > < / p >

    < p > < span lang = "fr" > < br >

    < span id = "result_box2" lang = "fr" > in FireFox, it does not work: branches on green and white (= OK) + behind blue branches (= not OK). </span > < / span > < / p >

    < p > < span lang = "fr" > < span lang = "fr" > also order is not working. < span id = "result_box3" lang = "fr" > (in DW + FireFox) </span > < br >

    </span > < / span > < / p >

    < p > < span lang = "fr" > < span lang = "fr" > what am I doing wrong. Someone at - it a suggestion? </span > < / span > < / p >

    < / div >

    < / div >

    < / body >

    < / html >

    CSS----------------------------------

    @charset "utf-8";

    #Container {}

    Width: 900px;

    left margin: auto;

    margin-top: 0px;

    Clear: both;

    height: 200px;

    margin-right: auto;

    }

    {#Logo - 1 #Container

    height: 250px;

    Width: 290px;

    Clear: both;

    float: left;

    top of the margin: 28px;

    left margin:-45px;

    background-image: url (.. / Images/Test01.png);

    }

    {#BodyMidden}

    background-color: #ffffff;

    left margin: auto;

    margin-right: auto;

    do-family: Verdana, Geneva, without serif.

    Width: 877px;

    padding-right: 22px;

    low-margin: 11px;

    border-radius: 10px;

    padding-bottom: 666px;

    }

    {#BodyMidden #BodyMidTekst}

    float: right;

    Width: 525px;

    top of the margin: 20px;

    }

    {#BodyMidden #Menu

    background-color: #aaC6DA;

    border-radius: 10px;

    float: left;

    height: 222px;

    left margin:-215px;

    top of the margin: 29px;

    padding-left: 10px;

    padding-top: 10px;

    Width: 222px;

    }

    #Menu ul {}

    }

    #Menu li {}

    / * change in menu * /.

    left margin: 11px;

    top of the margin: 11px;

    padding: 0px;

    make-weight: bold;

    text-align: left;

    font-size: 70%;

    }

    #Menu li a {}

    }

    ul li {}

    }

    body, td, th {}

    background-color: #B8C666;

    do-family: Verdana, Geneva, without serif.

    }

    Z-index only works on elements in position.

    http://www.smashingmagazine.com/2009/09/15/the-z-index-CSS-property-a-comprehensive-look/

    Nancy O.

  • Question about parallel hint and 'alter table enable parallel DML'

    Hi all

    I have a DML as follows:

    Insert / * + append * / into table1
    Select *.
    of COMPLEX_VIEW;

    Here complex_view contains a very complicated SQL, in which there is some heavy tables joins, subqueries, and aggregations.

    Question 1:

    Let's assume that the underlying tables have no attribute "parallel." Where should I add "parallel index" to force it to be run in parallel and can get better performance?

    Some members think that what follows is good.

    Insert / * + append * / into table1
    Select / * + parallel (a 4) * / *.
    of COMPLEX_VIEW;

    But I think that indicators must be put in the defintion of the complex view where they should be and do not put advice to the main insert DML, like this:

    Insert / * + append * / into table1
    Select *.
    of COMPLEX_VIEW; -I added the indicators in the COMPLEX_VIEW.

    What is your opinion?

    Quesion2:
    Without ' alter session enable parallel DML ", I can see the parallel session in v$ px_session thus." And the execution time has been shortened. This proves without this statement, the DML is also run in parallel.

    So, what is the effect of this statement?

    Best regards
    Leon

    I prefer the suspicion out of the COMPLEX_VIEW. This way, only this application forces the suspicion. If you put the indicator in the COMPLEX_VIEW, any other query on COMPLEX_VIEW (or Assembly of COMPLEX_VIEW to another view or a table) would also "encode" indicator in its execution. You don't then isolation parallel query to only where it is needed.

    If you put the parallel indicator in SELECT it (or view), the query is parallelized. This does not necessarily mean that the INSERT is parallelized. What you see v$ px_session are only slaves to PQ to SELECT.
    You must ALTER SESSION ACTIVATE PARALLEL DML and add the PARALLEL indicator in the INSERT.

    Hemant K Collette

  • question about orders of vista: using the mouse

    could someone means give me the list of commands in vista which has to do with the mouse?

    Tips of mouse [Prev | ] Next | Content]

    Click with the right button on the title bar Recommended Windows menu mode (formerly the system menu or control)
    Double-click the title bar Activates / deactivates a window between the Normal State and Maximised.
    Right click on the System Menu or folder in Web view icon Open the context menu for the container. Vista: feature removed for windows explore. Interface user Vista guidelines, however, recommend that the icon is a document icon in applications of document type and show the context menu for the document on right click. Document not applications, such as MS Messenger, should show the application icon and context menu should apply. Left-click on the icon should display the Windows menu for compatibility reasons, but it should not be documented, do a right-click with the exception of the title bar icon is the new documented way.
    Drag an object on a Windows title bar Opens the object in this window (do slide in the window will often work, but in OLE documents this will insert the object in the active document). Some programs, such as Notepad insist on the files being deleted in the client area.
    To drag an object, then place the cursor over a folder collapsed in Explorer tree Expands the view of folder
    Drag an object on the border of the client area of a window Scrolls the window. The client area is the part of a window that contains the objects or documents. It does not include the title, menu bar or toolbars.
    To drag an object, then mouse over a button of the taskbar Brings the window associated with the button on the taskbar to the top
    To drag an object, then place the cursor on an empty part of the taskbar. Minimize all open windows
    Double-click the bar of relief on the left side of the toolbar in the taskbar while the taskbar is unlocked Activates / deactivates the toolbar through maximum size, minimum size and content adjustment
    Click with the right button on the background of table in games of cards or tiles (Ctrl + A) Car moving what can be maps.
    CTRL + Alt + Shift + click the pile of cards in Solitaire In turn on a map in the map three draws.

    --
    .
    --
    "sandwichsam" wrote in message News: a8afe044-ea55-45bd-93f7-5036fcfc6472...

    > could someone means give me the list of commands in vista which has to do with the mouse?
    >

  • Question about orders and the inputs of the element of the API

    Hello

    Pay_element_entry_api allows us to update the values of the clip. Similarly, we have pay_batch_element_entry_api through which we create master batch and lot lines and update the entries in the element. Can someone explain what is the difference between these 2 types of methods?

    Thank you

    KK

    The second method gives you more control: the user can decide when to download the Scriptures, chenge their values, validate before the transfer, handle exceptions and so on.

    One requires less work: the entries are created immediately without user intervention.

    It depends on the business process.

  • question about PARALLEL hint

    the documentation says that this PARALLEL suspicion may by select statements used in as PARALLEL (emp 8). I've also seen some syntaxes like PARALLEL, PARALLEL 8, PARALLEL (8) and in each case the steps in execution plans are the same, but the assigned cost was a little different between each version (but much lower than for a query without this suspicion).

    How he interprets oracle above three syntaxes, IE.
    /*+ PARALLEL */, /*+ PARALLEL 8 */, /*+ PARALLEL(8) */
    ?
    are there parts in these syntaxes that are ignored or integrate the default behavior?
    which syntax is safe to use when you don't want to specify the table being parallelized, IE. Use a similar syntax PARALLEL (emp 8)?

    Thank you

    Edited by: 943276 2012-07-25 19:17

    Hello

    These could come in handy:

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/sql_elements006.htm#SQLRF50801

    http://docs.Oracle.com/CD/E11882_01/server.112/e16638/hintsref.htm#PFGRF94942

  • A question about the order of COLUMN sqlplus and PL/SQL

    Hello everyone.



    I would like to ask a question about sqlplus command COLUMN that I use in order to define the length of my queries of output columns. So, for example, I run something like:
    COLUMN market FORMAT a20
    That is why any column with the name 'the market' will be composed by sqlplus as 20 characters.

    Currently I'm working on a PL/SQL script that makes this automatic procedure, in other words, instead of manually write for each column in the above COLUMN order, it uses the DBMS_SQL. He read first as input the name of the table and then inside a loop, it detects the maximum length.

    For those interested, here is the Oracle documentation page that I found (example 8)
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_sql.htm

    If everything worked well enough I managed to recover the maximum of each column in my table length, except that I don't know how to use the COLUMN sqlplus command in my PL/SQL block. I would like to do something like that (it's just a pseudo-code)
    FOR colIndex in 1 .. numberOfColumns LOOP
            currentColumnName = getColumnName(tableDescriptionObject, colIndex);
            currentColumnLength = getColumnLength(tableDescriptionObject, colIndex);
            
            COLUMN  currentColumnName FORMAT a -- and here after 'FORMAT a' I have to write currentColumnLenth but I don't know how to proceed.
    
    END LOOP;
    I would like to know is there a command in PL/SQL to define the appropriate column typeset in sqlplus length?


    Thanks in advance,
    Dariyoosh

    Hi, Dariyoosh,

    Sory, I don't think that there is a simple way to publish SQL * most orders fom PL/SQL.
    PL/SQL runs in the database (back-end); There isn't any direct contact with SQL * more at the front end.

    The best way I know is that PL/SQL script (myfile.sql) with orders of the COLUMN, and then have SQL * more run the script (@myfile).

  • Where can I ask a handful of general order questions about Firefox OS as a consumer and get the answers? (a forum or something similar)

    I have about seven questions about Firefox OS. I'm potentially interested in opting for a tablet that works instead of Android or iOS. I couldn't find a place to ask questions like that. Thank you!

    https://support.Mozilla.org/en-us/forums/Firefox-OS-English-Forum

    There is another option.

  • Many questions about the HP 50 g

    I just ordered a HP 50 g graphic calculator! I have a few questions about this so hang on tight! What is the USB connector on the calculator? Mini-USB, micro USB, or is it a connector owner, "custom". Then, it would be possible to connect a keyboard to the HP 50 g by using the USB Port? Is there a program that would make this possible? (I doubt it would work if you plug it..) I have a Mini-USB to female USB 2.0 connector. So I could just plug the keyboard right, provided that the port on the calculator is a Mini-USB Port. If this is not so that I could use my female to female USB adaptor to connect the keyboard.

    Thanks for your help,

    Zekelegge

    Hi!, zekelegge:

    Welcome to Forum!

    The only printer I use, 50G calculators, 48GII, 39GS and 17BII +, as well as many former models, such as the 48 s/SX/G/G + / GX, 38 G, 39 G, 42, 41 C/CV/CX and 28 C/S, is the infrared printer HP 82240 b. If you can use the emulator HP50G, on the PC, the simulator of the printer, you can download, since... http://www.HPCalc.org/details.php?id=7386

    The printer... HP 82240 B

    The cable series...

    The description... http://www.allenwan.com/hpcalcserialcable/

    The original cable...

  • A few quick questions about the Satellite P300 - 18 M

    Hello

    I am about to order a Satellite P300 - 18 M and have just a few questions about this:

    (Although these may apply for other similar Satellite/Equium P300.)

    Is the touchpad made by / to use the Alps or Synaptics driver?

    It has the Wireless N network card, is the map made by Intel or Realtec?

    And also, someone has experience with face recognition software to connect?

    If so, does it take a lot of time to initalise?

    Thanks in advance,
    Jack

    Hello

    The P300 - 18M belongs to the PSPCCE series.
    It uses the two touchpad drivers. Synaptics & Alps Electric
    There is an Intel 802.11agn minicards WLan installed

    The face recognition is a nice tool but local to be illuminated and you must take your face the right of the post sometimes it of not very easy

    But if you face is recognized correctly that the connection should work properly

    See you soon

  • Question about temperature internal Satellite A300 ND1

    Hello

    I have a question about the temperature of the standards it of ok for my laptop and what is the normal temperature and how can I keep it low?

    Thank you.

    Hello

    It's not easy to say what a normal temperature could be.
    The temperature is not always the same and it depends on the use of the laptop.
    Usually, the temperature would increase while gaming or running applications high performance. Why? Because all devices such as the CPU and GPU would focus the heat dissipation and this leads to a higher temperature.

    > How can I keep it low
    Very simply, you can keep still low level, but you can make sure there is enough free space around the laptop to ensure good air circulation.
    Also don t use the laptop on your knees etc in order do not obstruct cooling fans.

    It s also advised to clean the fans from time to time using the jet of compressed air. These sprays are really useful and could buy in the stores of different computers.

  • A few questions about the recovery image installation

    A recovery USB drive created using the Recovery Media Creator contains the Windows operating system and is it the Windows key to reinstall - how it is activated. Is it different for the repair disk.

    Can be used for a new installation of Windows 7 on a new SSD? Is this just a case of connection and the recovery disc running on the new drive to th? How the recovery Partition can be re-created on a new SSD?

    Drop Hello

    I can see user Justinian gave detailed answers, and I hope you understand how it all works now. Of my overwiev aside:

    What exactly is recovery image?
    + Recovery image is an exact copy of a hard drive and contains the exact copy, byte by byte, a hard disk partition. The copy includes all the partition information, sectors priming, the table of allocation of files, installation of operating system and software application different. +
    + You are using installation Recovery CD/DVD/USB, you can restore your system after heavy data loss, caused by an accident of operating system, hardware failure or complete virus attack. +
    + Recovery image installation procedure allows the installation of system and easy to user. Unfortunately, it is not possible to restore only certain files from a disk image. +
    + Each recovery image is designed for a specific model laptop and it cannot be used for any other series of notebook. +

    With other words, recovery image is a software package that contains Windows operating system, all the drivers needed for some portable model, Toshiba tools, utilities, and also some other software. A lot of people don't like these additional software, but no you don't have to use it. all things you don't like you can remove it from the system.

    Activation of recovery image:
    When you buy the phone model you also purchase the license for the preinstalled OS version that you get with your machine. After start and contact to the internet OS will be checked and activation will be valid.

    Please note: you can reinstall original image recovery 100 times if necessary. There is not a kind of limitation, and whenever it will be activated.

    Take care of your recovery media (DVD/USB). Do not lose it.

    Of course, it can happen that you do not find your recovery media. In this case you can order.
    Recovery order - https://backupmedia.toshiba.eu/landing.aspx
    Questions and answers about ordering recovery DVDs - http://aps2.toshiba-tro.de/kb0/TSB0202TA0000R01.htm

    If you have any other questions do not hesitate to ask.

Maybe you are looking for