Can a Tree be used as a Select List?

Hi
I'd like to use a tree structure in APEX as an interactive 'Select List Item' or a Menu component.
When users click on a particular tree node, the selection will be highlighted and it's associated PID from the underlying query can be accessed to filter a Report.
Is this possible?
Thanks
Greg

Hi Andy
I had hoped to use the normal APEX tree item to drive interactive user selection.
The tree report in APEX seems a bit limited for this requirement. I'm unable to click on individual leaf elements.
The tree list shared component, on the other hand, gives me this functionality. Unfortunately, there does not seem to be a way to populate a list from query?
I've found Scott Spendolini's AJAX tree, which I'm trying to implement and test to see if it suits my requirements, however, I'd prefer to use internal APEX features, if it all possible.
Please let me know APEX caters for this.
Many thanks
Greg

Similar Messages

  • How Do I Filter a Report Using a Multi Select List Box and Specifying Date Between Begin Date and End Date

    Hope someone can help.  I have tried to find the best way to do this and can't seem to make sense of anything.  I'm using an Access 2013 Database and I have a report that is based on a query.  I've created a Report Criteria Form.  I
    need the user to be able to select multiple items in a list box and also to enter a Begin Date and End Date.  I then need my report to return only the records that meet all selected criteria.  It works fine with a ComboBox and 1 selection but can't
    get it to work with a List Box so they can select multiple items.  Any help is greatly appreciated while I still have hair left. 

    The query should return all records.
    Let's say you have the following controls on your report criteria form:
    txtStart: text box, formatted as a date.
    txtEnd: text box, formatted as a date.
    lbxMulti: multi-select list box.
    cmdOpenReport: command button used to open the report.
    The text boxes are used to filter the date/time field DateField, and the list box to filter the number field SomeField.
    The report to be opened is rptReport.
    The On Click event procedure for the command button could look like this:
    Private Sub cmdOpenReport_Click()
    Dim strWhere As String
    Dim strIn As String
    Dim varItm As Variant
    On Error GoTo ErrHandler
    If Not IsNull(Me.txtStart) Then
    strWhere = strWhere & " AND [DateField]>=#" & Format(Me.txtStart, "yyyy-mm-dd") & "#"
    End If
    If Not IsNull(Me.txtEnd) Then
    strWhere = strWhere & " AND [DateField]<=#" & Format(Me.txtEnd, "yyyy-mm-dd") & "#"
    End If
    For Each varItm In Me.lbxMulti.ItemsSelected
    strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
    Next varItm
    If strIn <> "" Then
    ' Remove initial comma
    strIn = Mid(strIn, 2)
    strWhere = strWhere & " AND [SomeField] In (" & strWhere & ")"
    End If
    If strWhere <> "" Then
    ' Remove initial " AND "
    strWhere = Mid(strWhere, 6)
    End If
    DoCmd.OpenReport ReportName:="rptMyReport", View:=acViewPreview, WhereCondition:=strWhere
    Exit Sub
    ErrHandler:
    If Err = 2501 Then
    ' Report cancelled - ignore
    Else
    MsgBox Err.Description, vbExclamation
    End If
    End Sub
    If SomeField is a text field instead of a number field, change the line
            strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
    to
            strIn = strIn & "," & Chr(34) & Me.lbxMulti.ItemData(varItm) & Chr(34)
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Resolved: Use value from select list in pl/sql block

    Hello,
    I have a form with a select list: P18_BONUSTYPE, the values of which come from a LOV.
    When the user clicks a button, a page process is used to insert a row into a table.
    When I use the :P18_BONUSTYPE bind variable in my insert statement I get an error "Invalid number" I get an "Invalid number" error. I assume that APEX is using the displayed text in that bind variable, not its actual (html option) value.
    I checked the HTML of the page, and the correct values are in the select list.
    Can someone tell me how to get the value into a bind variable that can be used in a pl/sql block for a page process?
    Thanks
    Message was edited by:
    Neeko
    Issue was a value in another item.

    Did you tried changing the value using "to_number"? (i.e. to_number(:P18_BONUSTYPE)).
    Max.

  • Can a Link be attached to a select list option?

    Here is some code for a select list that pulls its data from a database:
    <select name = "sid" height = "1"class="dropit" >
    <?PHP while ($row = $result ->fetch_assoc())  {   ;
        echo '<option value='. ($row['id']);
        if (!(strcmp($row['id'], $row['id']))) {echo "selected=\"selected\" ";}
         ?>><?php echo $row['type']?>
    <?PHP } ?>   
    </select>
    This works fine with a form. It is fast, and you can jump to an option just by typing its first letter.
    I would like to code it so that the options have a link to another page attached to them without the need for a form.
    It would show the selected item, and next to it would be a link attached to the word "Update"
    The link would be similar to this: <a href="update.php?id=<?php echo $row['id']; ?>">Update</a>
    It is quite easy to do in a table, with the <a ref in one td and the name field in another like so:
    <table>
    <?php while($row = $result->fetch_assoc()) { ?>
      <tr>
        <td><?php echo $row['id']; ?></td>
        <td><?php echo $row['type']; ?></td>
        <td><a href="update.php?id=<?php echo $row['id']; ?>">EDIT</a></td>
       </tr>
      <?php } ?>
    </table>
    but it does not allow key navigation, and as I have a growing list of over 6000 items,it is becoming painfully slow to use.
    Is it possible to include a URL within the option,
    Or allow the option to be selected with the URL alongside it within the select list?
    Its part of a management system that I am updating.
    For searches on the live web I am able to filter the results in a better way, using a word search system..
    All help appreciated.
    Howard Walker

    Thanks Bregent. I never studied Jump Menus before today.
    A jump menu works to a degree, but unless I have made a coding error, it is not possible to jump to an item in the list by hitting a letter key while the list is active.
    Here is my code using a database table with an id and a single field:
    <script type="text/javascript">
    function MM_jumpMenuGo(objId,targ,restore){ //v9.0
      var selObj = null;  with (document) {
      if (getElementById) selObj = getElementById(objId);
      if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0; }
    </script>
    <form name="form" id="form">
      <select name="jumpMenu" id="jumpMenu">
                 <?PHP while ($row = $result ->fetch_assoc())  { ;?>
                  <option value=<?PHP echo"update2.php?id=".$row['id'] ?> ><?PHP echo $row["id"]." - ";?><?PHP echo $row["field_value"];?></option>
               <?PHP }   ?>
      </select>
      <input type="button" name="go_button" id= "go_button" value="Go" onClick="MM_jumpMenuGo('jumpMenu','parent',1)">
       </form>
    Unless every option has a different link, I can see little use for it.
    Seems little different to a standard form with a drop down menu and a GO button, and that does not need any javascript!
    It does give a workable example of how to populate a jump menu from a database, which I was unable to find on the web.
    Comments welcome.
    Howard

  • Trying to use Spry with Select List

    I have a dataset that is static xml. .In the xml file I have
    a node called categoreis and then repeating node of store name,
    phone and address in that category. There are around 15 categories
    and a total of 100 stores with address and phone. I can create the
    select list and add the onchange event to tell Spry which row of
    data was selected in the drop down. I do not understand how to
    generate the detail region that shows the stores for that
    particular category. Any help would be appreciated.

    Always include the following information when asking a question:
    <ul>
    <li>Full APEX version</li>
    <li>Full DB/version/edition/host OS</li>
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)</li>
    <li>Browser(s) and version(s) used</li>
    <li>Theme</li>
    <li>Template(s)</li>
    <li>Region/item type(s)</li>
    </ul>
    taepodong wrote:
    Hi All,
    Bit at loss what i am doing wrong here. Trying to change a field (previously in textfield) to a drop down select list. All works except one. It looks like Multi-selector even though I set the type as Select List
    http://i.imgur.com/Hz7tP.png
    Got no idea what I have to do to change it to drop down. Many Thanks.If you are on apex 4.x, you might have set the Allow Multiple Selection to Yes
    Edit the select list item > Settings > set Allow Multi Selection to No
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/item_types001.htm#HTMDB28627

  • ORDER BY using a Non-SELECT list column

    I need to SELECT DISTINCT values from a column and ORDER it by another column in the same table which is not in the SELECT list. When i got
    ORA-01791: not a SELECTed expression error, I tried various things like putting ORDER BY clause in the outer query, using a DISTINCT in the ORDER BY clause,..etc but couldn't succeed.
    SQL> create table sample_table (col1 number, col2 number);
    Table created.
    SQL> select distinct(col1)
      2  from sample_table
      3  order by col2;
    order by col2
    ERROR at line 3:
    ORA-01791: not a SELECTed expression
    SQL> select col1 from
      2  (select distinct(col1) col1 from sample_table)
      3  order by col2;
    order by col2
    ERROR at line 3:
    ORA-00904: "COL2": invalid identifier
    SQL> select distinct(col1) col1 from sample_table
      2  order by distinct(col2);
    order by distinct(col2)
    ERROR at line 2:
    ORA-00936: missing expressionAny workarounds for this seemingly simple requirement?

    Any workarounds for this seemingly simple requirement?This is not a simple requirement. It is a self contradictory requirement.
    You want to order an result on a attribute that you don't have. This is not possible from a logical point of view.
    Like saying,
    "I want the typical/distinct family size in houses in my town, ordered by house number."

  • Inserting multiple rows into a table using a multiple-select list

    I'm trying to figure out how to take the output of a multiple-select list (":" separated list of values) and use that to update a table by inserting multiple rows based on the values. Is there a straight-forward way to do that in APEX?
    Thanks.
    Chris

    Hi Chris,
    I think this should give you what you need: Working with a Multiple Select List Item
    --Jennifer                                                                                                                                                                                                                                                                                                                                                                                                   

  • Can the ":" char found in a multiple select list be shown differently?

    I have a column which allows multiple values, say "Red, Green, Blue"
    When it shows in the report, it shows as "Red:Green:Blue"
    Just for aesthetics sake, can the field be shown with "," instead of ":" ???
    Thanks!
    Claudio

    Do it in the query:
    SQL> with t as (
      2    select 'Red:Green:Blue' col from dual
      3    union all
      4    select 'Bad:Design:Decision' from dual)
      5  select
      6           replace(col, ':', ', ') col
      7  from
      8*           t;
    COL
    Red, Green, Blue
    Bad, Design, Decision

  • Using multiple select lists in ADF

    Hi,
    I am trying to use a multiple select list in my JSP page, and have a method in the ApplicationModule be called when the Struts action is called. I am following the example ADF tutorials, where the method is added to the ApplicationModule class, then dragged onto the Stuts Flow diagram (to associate it with an action).
    I am able to create a dyna form bean for the page that contains the multi select as a type "java.lang.String[]" (string array). I am able get that values that were selected in a normal action's "execute" method. For example:
    msf = (DynaActionForm) form;
    String[] statusSelection = (String[]) msf.get("multSelectList");
    However, I cannot seem to get the "multSelectList" values into a method in my Application Module class. The "multSelectList" is defined in my dynaFormBean as a String[] type. I am passing it in as an argument like the following....
    public void setParams(String multSelectList[]) {
    This results in the method not being called at all. I am not sure why. Does this have something to do with a String[] not being serializable??
    However, if I just attempt to pass other types form items to the method, it works. For example:
    public void setParams(String simpleCheckbox) {
    Does anyone know how to use multiple select lists in conjunction with ADF?
    P.S.
    my multSelectList looks something like this:
    <select name="multSelectList" multiple size="5">
    <option value="ALL">Select All</option>
    <option value="preferred">Preferred</option>
    <option value="standard">Standard</option>
    <option value="approved">Approved</option>
    <option value="interim">Interim</option>
    </select>

    I got this working by changing the signature of the Application Module method to use ArrayList rather than String[], then you can marshal the Struts FormBean contents into an ArrayList to pass up.
    To do this, subclass the DataAction by using "Go To Code" off of the context menu and then override the initializeMethodParameters() method:
      protected void initializeMethodParameters(DataActionContext actionContext, JUCtrlActionBinding actionBinding)
        //Get the String Array from the Form Bean
        String[] selection = (String[])((DynaActionForm)actionContext.getActionForm()).get("multiSelect");
        //convert that to an ArrayList
        ArrayList selectionArr = new ArrayList( Arrays.asList(selection));
        //Add that object to the Arg List for the AM method
        ArrayList params = new ArrayList();
        params.add(selectionArr);
        actionBinding.setParams(params);
      }

  • Using Multi Select List in SQL Query

    Hi all,
    I am trying to using a Multi Select list for filtering of a report. I have :P2_RISK_SEVERITY which has has the possibility of values Very Low:Low:Medium:High:Very High. How do I use this Multi Select in the where section of a SQL query?
    I need to say something along the lines of:
    Select RISK_SEVERITY from TBL_RMD_RISKS where RISK_SEVERITY = (one of the options selected in the multi select)
    Thanks for the help.

    Hi there,
    The above suggestion will work perfectly as long as the table you're querying is relatively small, but keep in mind that applying the INSTR to the left side of the WHERE clause will always result in a full table scan. This means that if your table is large and RISK_SEVERITY is indexed, the index will never be used. Here is another approach (credit to AskTom) that converts your colon-delimited string of selected values to a list that can be used in an "IN(...)" clause, which will use an index on RISK_SEVERITY as long as the optimizer otherwise deems it appropriate:
    -- creates a type to hold a list of varchars
    CREATE OR REPLACE TYPE vc2_list_type as table of varchar2(4000);
    -- converts a colon-delimited string of values to a list of varchars
    CREATE OR REPLACE FUNCTION vc2_list(p_string in varchar2)
       return vc2_list_type is
       l_string       long default p_string || ':';
       l_data         vc2_list_type := vc2_list_type();
       n              pls_integer;
    begin
       loop
          exit when l_string is null;
          n := instr(l_string, ':');
          l_data.extend;
          l_data(l_data.count) := ltrim(rtrim(substr(l_string, 1, n - 1)));
          l_string := substr(l_string, n + 1);
       end loop;
       return l_data;
    end vc2_list;
    -- your WHERE clause
    where risk_severity in(
             select *
               from the(select cast(vc2_list(:P2_RISK_SEVERITY) as vc2_list_type)
                          from dual))
    ...Hope this helps,
    John

  • Create a select list using AJAX

    Hello,
    I saw Carl Backstrom and Scott Spendolini examples on how to use AJAX to populate a related item, based on a select list. What I'm looking for is the reversed angle.
    I have a TextItem, and I want to generate a select list based on that TextItem, something like this:
    select code, desc
    from Table
    where code like TextItem
    Is it possible with AJAX? (in the current examples I gat lost in the on demand application process – How, if possible, to render the select list using the HTP package.)
    Greatly appreciate the help
    Arie.

    Carl,
    I hope you can help with this, from reading the forum, you seem to have a lot of experience with AJAX and Application Express. I have found your examples within the forums and can not get them to work on my servers. I am on version 2, and a 10g database. I am attempting to place 4 select lists on a page. Each one (with exception from the first) will be dependent on the previous. To make is simple I have started with only 2 select lists. The first select list (p1_select1) is a list of departments. The second list (p1_select2) should populate with the users who belong to the department selected from p1_select1. I can not seem to get the second select list to load. I have attempted to follow your code as best I could, I can see on the page that it has created the xml data, however it just does not populate the second select list. Here is a summary of what I have.
    Thanks for lookin.
    Mike
    Page Regions:
    HTML: main (10)
    Region Header:
    <script language="JavaScript1.1" type="text/javascript">
    function f_Get_Data(pThis,pSelect_Source,pSelect_Target){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect_Target);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=Get_Data',0);
    get.add(pSelect_Source,pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){/* why is ie different ask bill */
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>
    Items
    Region: main
    10: P1_TEXT1 Select List
    20: P1_TEXT2 Select List
    P1_TEXT1 Form Element:
    onChange="javascript:f_Get_Data(this,'P1_TEXT1','P2_TEXT2')";
    APPLICATION PROCESS "On Demand" Get_Data:
    declare
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select ENAME , EMPNO
    from EMP where DEPTNO = :P1_text1) loop
    htp.prn('<option value="' || rec.EMPNO || '">' || rec.ENAME || '</option>');
    end loop;
    htp.prn('</select>');
    exception
    when no_data_Found then
    null;
    end;

  • Changing a select list using javascript

    Hi all,
    yesterday I had a doubt using apex_item.checkbox and how to change them using javascript:
    Re: Passing a checkbox as a parameter to a javascript function
    Today, I'm facing a similar problem, but with select lists. Here it goes. I have a report with apex_items, like this:
    select
    apex_item.checkbox(1,"ID",NULL,NULL,NULL,'f01_#ROWNUM#') " ",
    apex_item.select_list_from_lov(2,"SW_STATUS",'F2010051_SET_STATUS','onChange="setItems(''f01_#ROWNUM#'',''f03_#ROWNUM@'')"','NO') sTATUS,
    apex_item.select_list_from_lov(3,"REVISIO",'F2010051_SET_REVISIO',NULL,'NO','f04_#ROWNUM#') "REVISIO"
    from Fx1_vThe javascript code is as follows:
    <script type="text/javascript">
    function setItems(cb,estat){
      elem = $x(cb);
      alert(elem.value);
      $x(cb).checked = true;
      elem2 = $x(estat);
      alert(elem2.value); 
    </script>The idea is that everytime the item g_f02 (a select list) changes, calls the JS function with two parameters: a checkbox (g_f01) and another select list (g_f03). The function should change the items to a defined values. The checkbox changes ok thanks to the help I got yesterday, but I can't work with the third item (select list g_f03). When I try to show the value, it says "undefined".
    how could I see the actual value of the select list LOV and change it to 1, for example?
    Thank you very much, any help will be appreciated!!!
    Edited by: Elena.mtc on 19-may-2011 8:11

    Hi,
    Do you have typo in query?
    Should it be
    select
    apex_item.checkbox(1,"ID",NULL,NULL,NULL,'f01_#ROWNUM#') " ",
    apex_item.select_list_from_lov(2,"SW_STATUS",'F2010051_SET_STATUS','onChange="setItems(''f01_#ROWNUM#'',''f03_#ROWNUM#'')"','NO') sTATUS,
    apex_item.select_list_from_lov(3,"REVISIO",'F2010051_SET_REVISIO',NULL,'NO','f04_#ROWNUM#') "REVISIO"
    from Fx1_vAnd JavaScript
    <script type="text/javascript">
    function setItems(cb,estat){
      elem = $x(cb);
      alert(elem.value);
      $x(cb).checked = true;
      elem2 = $x(estat);
      alert(elem2.value); 
      $s(elem2,1); // $s function is for changing item value
    </script>Regards,
    Jari

  • Not Allowing a Value to be Selected in a Select List

    Version 4.1.1.00.23
    Hello,
    I've created a Select List to display Projects within a Department (we call them Groups).
    A Group will have Projects, however, more than one Group can have a Project with the same name.
    So my query for the Select List displays the data in a Hierarchical format like this:
    Group 1
        Proj Grp 1
        Proj Grp 1
        Proj Grp 1
        Proj Grp 1
        Proj Grp 3
    Group 2
        Proj Grp 1
        Proj Grp 1
        Proj Grp 2
        Proj Grp 2
    Group 3
        Proj Grp 1
        Proj Grp 2
        Proj Grp 3
    What I'm looking for is to NOT allow the 'Group' level to be selected within the list. Only allow the Project level values to be selected.
    The query is:
    WITH t
         AS (SELECT 'Group: ' || vg.group_name name
                   ,vg.group_id
                   ,NULL id
                   ,1 AS weight
             FROM   vertical_group vg
             WHERE (vg.group_id = :P100_GROUP OR :P100_GROUP = 0)
             UNION ALL
             SELECT '....' || project_name
                   ,group_id
                   ,project_id
                   ,2 AS weight
             FROM   tbs_projects
             WHERE  status IN ('Pipeline'
                              ,'Planned - Partially Funded'
                              ,'Planned'
                              ,'Execution') AND
                    ( :P100_RYG_PROJECT = 0 OR :P100_RYG_PROJECT = ryg_proj_id ) AND
                    ( group_id = :P100_GROUP OR :P100_GROUP = 0 ))
    SELECT name
          ,id
    FROM   t
    ORDER BY group_id
            ,weight
            ,name
    Can someone help me with this?
    Is there additional information I can provide?
    Thanks,
    Joe

    The HTML optgroup element is used to structure select lists in this way. Standard APEX Select Lists and LOVs do not have support for generating optgroup elements in option lists, but item plug-ins with this feature are available.
    See the documentation for more on using plug-ins.

  • How To? Select List item return 2 values (high and a low)

    Can anyone suggest how to make a select list drop box return 2 values for my query.
    eg:
    Pick from
    Last Week
    Last Month
    Last Year
    return high/lo values of
    5-feb-06 12-feb-06
    01-jan-06 31-jan-06
    01-jan-05 31-dec-06
    Such that my query can refer to it as
    select *
    from tabx
    where dte > :parm_lo
    and dte < :parm_hi
    You get the idea ..

    I haven't tested this at all, so it may not work, but the first thing that springs to mind is not returning the two dates, base it on the current date, i.e. have your select list return something like -
    Last Week - Return 'W'
    Last Month - Return 'M'
    Last Year - Return 'Y'
    then use a query something like -
    SELECT *
      FROM tabx
    WHERE dte >
              CASE v ('ITEM')
                 WHEN 'W'
                    THEN TRUNC (SYSDATE, 'd')
                 WHEN 'M'
                    THEN TRUNC (SYSDATE, 'Mon')
                 WHEN 'Y'
                    THEN TRUNC (SYSDATE, 'yyyy')
                 ELSE dte - 1
              ENDLike I said, completely untested and may not work...you may also have to play around with the boundary values (NLS settings too perhaps).

  • Subquery in SELECT list vs join

    If I'm not mistaken, both queries below are functionally the same. Both return all rows from table1 and only show a value for table2.F7 if the first 4 characters of F7 equal F2.
    My thoughts are this... It's nice that a subquery can be used in a select list, but it looks like, with all the sql I've written which uses that approach, I could have just as well used the join approach. Is this always true? Can someone show me as example where using a subquery in the select list is hands-down the better approach?
    SELECT table1.F2,
    (SELECT table2.F7 FROM table2 WHERE substr(table2.F7,1,4) = table1.F2)
    FROM table1
    SELECT table1.F2, table2.F7
    FROM table1, table2
    WHERE table1.F2 = substr(table2.F7,1,4)(+)
    Let me add that, in my top example, multiple rows will never be returned by the subquery. If that were the case, then the join approach would be the only option.
    Message was edited by:
    Nick2012

    Probably there is no general answer and you'll always have to check separately.
    In the following example the scalar subquery turns out to be slightly more efficient than an outer join (15 gets versus 13 gets and compare the elapsed time):
    SQL> SET autotrace traceonly explain statistics
    SQL> SET timing on
    SQL>
    SQL> SELECT ename, (SELECT dname
      2                   FROM dept d
      3                  WHERE d.deptno = e.deptno) dname
      4    FROM emp e
      5  /
    14 rows selected.
    Elapsed: 00:00:00.72
    Execution Plan
    Plan hash value: 2981343222
    | Id  | Operation                   | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |         |    15 |   135 |     3   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| DEPT    |     1 |    11 |     1   (0)| 00:00:01 |
    |*  2 |   INDEX UNIQUE SCAN         | PK_DEPT |     1 |       |     0   (0)| 00:00:01 |
    |   3 |  TABLE ACCESS FULL          | EMP     |    15 |   135 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("D"."DEPTNO"=:B1)
    Statistics
              0  recursive calls
              0  db block gets
             13  consistent gets
              0  physical reads
              0  redo size
            742  bytes sent via SQL*Net to client
            381  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
             14  rows processed
    SQL> SELECT ename, dname
      2    FROM emp e, dept d
      3   WHERE d.deptno(+) = e.deptno
      4  /
    14 rows selected.
    Elapsed: 00:00:00.74
    Execution Plan
    Plan hash value: 3387915970
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |      |    15 |   300 |     7  (15)| 00:00:01 |
    |*  1 |  HASH JOIN OUTER   |      |    15 |   300 |     7  (15)| 00:00:01 |
    |   2 |   TABLE ACCESS FULL| EMP  |    15 |   135 |     3   (0)| 00:00:01 |
    |   3 |   TABLE ACCESS FULL| DEPT |     5 |    55 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - access("D"."DEPTNO"(+)="E"."DEPTNO")
    Statistics
              0  recursive calls
              0  db block gets
             15  consistent gets
              0  physical reads
              0  redo size
            666  bytes sent via SQL*Net to client
            381  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
             14  rows processed

Maybe you are looking for