Will indexes be used on the both sides of the join?

SELECT * FROM emp a, dept b WHERE a.dept_no = b.dept_no
Assume we have bitmap index on emp (dept_no) and we have binary index on dept (dept_no), will both the indexes be used for searching when equated?

Prasath N wrote:
I had looked the Explain plan, but it is taking only one index (index on dept (deptno)).
I tried giving hint for the other index, still no change in explain plan.
Will the other index be used while joining and not shown in explain plan?Care to show us your test case?
And your Oracle version?
Here's mine....
create table my_emp as
select *
from scott.emp
create table my_dept as
select *
from scott.dept
create index my_dept_i01 on my_dept(deptno);
create bitmap index my_emp_i01 on my_emp(deptno);
explain plan for
SELECT b.deptno
FROM my_emp a, my_dept b
  4  WHERE a.deptno = b.deptno;
Explained.
Elapsed: 00:00:00.01
TUBBY_TUBBZ?
TUBBY_TUBBZ?select * from table(dbms_xplan.display(NULL, NULL, 'ALL'));
PLAN_TABLE_OUTPUT
Plan hash value: 697535001
| Id  | Operation                     | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT              |             |    14 |   364 |     1   (0)| 00:00:01 |
|   1 |  NESTED LOOPS                 |             |    14 |   364 |     1   (0)| 00:00:01 |
|   2 |   BITMAP CONVERSION TO ROWIDS |             |    14 |   182 |     1   (0)| 00:00:01 |
|   3 |    BITMAP INDEX FAST FULL SCAN| MY_EMP_I01  |       |       |            |          |
|*  4 |   INDEX RANGE SCAN            | MY_DEPT_I01 |     1 |    13 |     0   (0)| 00:00:01 |
Query Block Name / Object Alias (identified by operation id):
   1 - SEL$1
   2 - SEL$1 / A@SEL$1
   4 - SEL$1 / B@SEL$1
Predicate Information (identified by operation id):
   4 - access("A"."DEPTNO"="B"."DEPTNO")
Column Projection Information (identified by operation id):
   1 - (#keys=0) "B"."DEPTNO"[NUMBER,22]
   2 - "A".ROWID[ROWID,10], "A"."DEPTNO"[NUMBER,22]
   3 - STRDEF[BM VAR, 10], STRDEF[BM VAR, 10], STRDEF[BM VAR, 7920],
       "A"."DEPTNO"[NUMBER,22]
   4 - "B"."DEPTNO"[NUMBER,22]
Note
   - dynamic sampling used for this statement (level=2)
36 rows selected.
Elapsed: 00:00:00.02
TUBBY_TUBBZ?
TUBBY_TUBBZ?select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE     11.2.0.1.0     Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
5 rows selected.
Elapsed: 00:00:00.01Edited by: Tubby on May 28, 2010 9:20 AM
Added test case.

Similar Messages

  • How can i print on the both sides of the paper on printer 5520

    how can i print on the both sides of the paper on printer 5520 when printing too many papers?

    Hi hamad5520
    I have included a document for two sided printing.
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03476083&lc=en&product=5157536&tmp...
    Hope this helps.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • How I can print on the both sides of the paper on printer P2055d

    Can printer P2055d print on both side of the paper? How I turn on duplex? I do not have a manual.

    Hi hamad5520
    I have included a document for two sided printing.
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c03476083&lc=en&product=5157536&tmp...
    Hope this helps.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • If i install microsoft office after partitioning my hard drive for windows, will it be available on both sides of the partition?

    If i install microsoft office after partitioning my hard drive for windows, will it be available on both sides of the partition? Will it be universal for the computer or would i have to install it on both operating systems? Or, if I install office BEFORE partitioning, will it be available on both platforms after i partition?

    If I understand your questions correctly, then I'm inclined to say no. Office for Windows and Office for Mac are two completely different applications. if you run via BootCamp, only one partition will boot.
    If you want to run Mac and Windows at the same time, you could do what I did:
    Get Parallels
    Install Windows as VM on top of Parallels
    Install Office in Windows
    Now, you can run your OS X, jump into Parallels' WIndows and use Office that way.
    It needs a lot of RAM, 4 is a bare minimum to realy make it sensible, 8 wouldn't hurt.

  • Sapscript  [using both sides of the paper]

    Hello all,
    I'm building a Sapscript to print sales orders but i need to do that using both sides of the paper.
    I have all the fields contents that i need, but I do not know how program this at sapscript.
    Is there any FM to do that?
    thanks for your help. Felipe Cunha.

    Look at the PAGE in the SAPscript layout set.  The field PRINT MODE on the lower left is used for DUPLEX.  Check the F1 help on this field.

  • I just dropped my iphone4 and cracked both sides of the glass how much will it cost for apple to repair in store?

    i just dropped my iphone4 and cracked both sides of the glass how much will it cost for apple to repair in store?

    I guess you are right. That was supposed to go on a different thread altogether. Whoops.
    Allan

  • I have 2 inches of empty space on both sides of the screen on all websites when using firefox. How do I get webpages to fill the screen?

    All my webpages on firefox have about 2 inches of empty space on both sides of the screen, but on Internet Explorer there is much less empty space or mostly none at all. How do i fix this?

    I can't make out from your low-res screenshot what those gray images in the menu at the left are, but I do not see them and there is nothing int the page source that accounts for them.
    *http://www.womensonlinebusiness.com/about-WomensOnlineBusiness.html
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Mapping a flipping coin on both sides of the coin

    Dear specialist, I'm pretty new with after effects and I want to use a clip from clipcanvas.com with nr 223635 it is a flipping coin. On that coin that is coming in the screen and disappears again I want to map a picture on both side of the coin. With my basic skills of tracking feature it is to difficult to for me to find out what properties and features I have to use that the pictures a following the flipping coin.
    Many thanks for giving me some tips/
    Beste regards
    Richard (Netherlands)

    Mocha...
    http://library.creativecow.net/devis_andrew/Separating-Elements_AE/1
    For that. However you might want to check out Mamoworld for their tracking plugin. You will find it smooth. You can do it with Moch that is in your Cs6. I think you might want to track onside first as layer and then track the other side as another Layer. I would not try to track both sides in one layer...Unless I had Mamoworlds Mocha+ importer plugin.

  • How do I get my HP 7520 to stop printing on both sides of the paper?

    I do not know why, but my HP 7520 Printer started printing on both sides of the paper rather than one side.
    How do I reset it to print on only one side

    Hi @Wineroth 
    I can help you disable the duplex printing feature. I suggest resetting the printing system to delete all printer presets. I suspect something was saved at some point that is causing the printer to print 2 sided. 
    OS X Yosemite: Reset the printing system
    Please let me know if this resolves the issue,
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Getting PO account assignment on both sides of the GR/IR accounting doc.

    When the GR/IR accounting document is created in our system for a PO item that is account assigned to an order, network or cost centre, the following occurs. On the Goods Receipt, the GR/IR account does not capture the cost assignment on the GR/IR posting.  On the Invoice Receipt, the GR/IR account posting does include the cost assignment on the GR/IR posting.
    For Example:
    MIGO posting generates this accounting entry
    Debit Expense account, Order 12xxxxxx          $100
    Credit GR/IR account                                          $100     (no order on GR/IR line)
    MIRO
    Credit Vendor                                                    $100     
    Debit GR/IR account, Order 12xxxxxx              $100  (order is posted with GR/IR line)
    Although the GR/IR account is a balance sheet account, is it useful, for a reporting task, to have the cost assignment included in the financial posting for both GRu2019s and IRs, but it only appears on the IR side.
    Is this something that can be solved by MM configuration?
    Comparing posting keys 86 (IR) with posting key 96 (GR) u2013 the cost objects we used are set as optional for both those keys, so it doesnu2019t appear to be posting key configuration.
    Note: When the PO item is assigned to a material (GR to inventory) the material appears on both sides of the GR/IR postings in Accounting, which is what we want for items account assigned to orders, networks, and cost center too.
    Thank you. Alvin.

    Thanks, but we still get the account assignment posted to GRIR during MIRO (as shown in Alvin's original post) so the full explanation cannot be the fact that GRIR is a balance account.
    Essentially, we would like GR and IR-events to pass the same account assignment string to GR/IR, except posting key.
    Thanks for helping.

  • Using values in the right side of the shuttle on another page.

    Hello All,
    On page 1 I have a shuttle item. I select some values and move them to the right side of the shuttle. Now I need to navigate to a second page (currently I'm controlling the navigation with a button) and pass the values from the right side of the shuttle on page 1 over to page 2. How do I get the values from the right side of the shuttle on page one over to page 2. If it's easier to use a pop-up than a second page 2 I'd love to do that, but same problem, how to use the values from the right side of the shuttle?
    I've tried setting up a shuttle on page 2 and setting the values on the URL re-direct but, no luck! I also tried a PL/SQL (On Load- Before Header) page process on the second page (see code below) where I try to "work with" the shuttle values, also no luck.
    Any ideas?
    Thanks Much!
    declare
    l_selected APEX_APPLICATION_GLOBAL.VC_ARR2;
    l_set_id number;
    l_loopcount PLS_INTEGER := 0;
    BEGIN
    l_selected := APEX_UTIL.STRING_TO_TABLE(:P6_UNGROUPED_SETS);
    -- Loop through the array of selected fulfillment sets
    FOR i IN 1.. NVL(l_selected.count,0) LOOP
    l_loopcount := l_loopcount +1;
    l_set_id := l_selected (i);
    INSERT INTO TEST2
    (SETS)
    VALUES
    (l_set_id);
    END LOOP; -- Loop through Array
    :p7_loopcount := l_loopcount;
    end; -- Main End

    Hello
    >> I've tried setting up a shuttle on page 2 and setting the values on the URL re-direct but, no luck!
    The value of a Shuttle item is a colon-delimited string. As colon is used as a special character in the APEX URLs (what we call the f?p notation) you can’t pass a Shuttle value using a URL (similar to the limitation of passing a traditional time notation like 10:00 in a URL, for the same reason).
    Whenever you are submitting a page, APEX automatically saves the value of all the page items in session state, and it makes them available on any other page in the application. You can access them by using the bind variable notation with the item name (e.g. :P1_SHUTTLE1).
    In your case, all you need to do is to submit page 1 (even if you don’t run any after submit activities) and then you can use the Shuttle item value from page 1 as the default value of the Shuttle item on page 2, or use this value in any other way on page 2. Just remember that the value is a colon-delimited string and for any other use other than a Shuttle default value, you most likely need to parse it first.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How do I print on both sides of the paper on microsoft word, excel for mac?

    My printer supports printing in both sides of the paper, and prints fine on both sides any pdf file.
    But there is no way to make it print on both sides when using Microsft Word or Excel
    How do I set it up?

    Try asking in the Microsoft Office forums. http://answers.microsoft.com/en-us/mac?auth=1

  • Got a new monitor and web sites won't fill it up without zooming in, there are blank collumns on both sides of the screen.

    I got a new monitor recently and the websites won't fill up the screen. There are columns without any images or text on both sides of the screen with the webpage centered. It's not a problem with the computer because offline things look just fine. I can zoom in to where it fits, but really don't want to have to do that every time I go to a new site. Thanks

    You can use an extension to set a default font size and page zoom on web pages.
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/

  • When I create a new chapter sometimes I get the chapter number with bullets on either side and sometimes I don't. I want to be constant. How do I consistently create bullets on both sides of the Chapter Number?

    How do I create bullets on both sides of the Chapter Number?  eg. Chapter One with bullets on either side.

    K T
    I originally started with a template but just erased all the content and built the book using blank pages. Sometimes when I add a chapter it comes up  like the example below or it could come up without the bullets. For the life of me, I don't understand why.
    Van Hunter
    • Chapter Eight •    

  • I am using iphone 3g 16GB and the upper side of the touch is not working plzzzz help me to resolve the issue

    I am using iphone 3g 16GB and the upper side of the touch is not working plzzzz help me to resolve the issue

    Thanks for the response Templeton Peck,
    New phone...! means the phone will get the replacement or I have to purchase a new one...?
    or if I change the touch pad or the touch screen will it not fix the issue...?

Maybe you are looking for

  • "Acrobat.exe- Bad Image" error message, Can't open anything with Acrobat

    I have Acrobat Pro 9.0 OS Windows 7 Just started having this error problem show up within the past couple weeks. Every time I try to open a document the browser freezes up for a few minutes (and I've tried on two different browsers), wont load the pa

  • New york times updates - safari extension - not refreshing

    New York Times Updates Safari Extension seems to have stopped updating it's info. I uninstalled it and then reinstalled it, but it only added a couple of items from several days ago. Is this feed no longer viable? The version on the Safari extensions

  • Restore to factory or early backup?

    Hi everyone! I'm trying to restore my computer to an earlier state and was wanting to get some advice. I deleted the factory restore files form my hard drive not long after getting my W520 in Dec 2011. I made a backup of the system right away upon fi

  • Confused beyond belief

    I recently purchased a new Mac (1st one I've owned).  I set up I've set up iCloud and iTunes.  Now on my iPhone when an App needs updating it keeps saying I have an incorrect Apple ID or password.  I've followed the prompts to change the password &/o

  • Reminders list order in OSX 10.8 & iOS 6

    Hi, it's great that Apple added the ability to manually re-order reminders on all platforms. Unfortunately this doesn't sync throughout my devices... will it be fixed?