How to change the order for table?

I use oracle 10g 10.2.0.3.0

I have a select statement
SELECT /*+ leading v.Guest_Info v.Guest_Domain_Relation Guest_Address*/
*
  FROM (SELECT 
         Cdr.Guest_Domain_Relation_Id,
         Ci.Guest_Id        
          FROM Guest_Info         Ci,
               Guest_Domain_Relation Cdr
         WHERE Ci.Guest_Id = Cdr.Guest_Id) v,
       Guest_Address Ca
 WHERE v.Guest_Id = Ca.Guest_Id;
and explain the Plan shows
1     Plan hash value: 3785964411
2      
3     ---------------------------------------------------------------------------------------------------------
4     | Id  | Operation                     | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |
5     ---------------------------------------------------------------------------------------------------------
6     |   0 | SELECT STATEMENT              |                         |  1806 |   199K|     9  (23)| 00:00:01 |
7     |*  1 |  HASH JOIN                    |                         |  1806 |   199K|     9  (23)| 00:00:01 |
8     |   2 |   MERGE JOIN                  |                         |   482 | 48682 |     6  (17)| 00:00:01 |
9     |   3 |    TABLE ACCESS BY INDEX ROWID| Guest_ADDRESS          |   919 | 87305 |     4   (0)| 00:00:01 |
10     |   4 |     INDEX FULL SCAN           | XAK1Guest_ADDRESS      |   919 |       |     1   (0)| 00:00:01 |
11     |*  5 |    SORT JOIN                  |                         |   482 |  2892 |     2  (50)| 00:00:01 |
12     |   6 |     INDEX FULL SCAN           | XPKGuest_INFO          |   482 |  2892 |     1   (0)| 00:00:01 |
13     |   7 |   VIEW                        | index$_join$_003        |  3493 | 41916 |     3   (0)| 00:00:01 |
14     |*  8 |    HASH JOIN                  |                         |       |       |            |          |
15     |   9 |     INDEX FAST FULL SCAN      | XAK1Guest_DOMAIN_Relation |  3493 | 41916 |     1   (0)| 00:00:01 |
16     |  10 |     INDEX FAST FULL SCAN      | XPKGuest_DOMAIN_Relation  |  3493 | 41916 |     1   (0)| 00:00:01 |
17     ---------------------------------------------------------------------------------------------------------
18      
19     Predicate Information (identified by operation id):
20     ---------------------------------------------------
21      
Is there in any case, I have Guess_Domain_Relation table join firstly that the join to Guess_Address table of Guest_info?

I tried a few ways to rewrite the query, but he's no luck

Thank you

Published by: Y.L on March 20, 2013 13:59

Y.L wrote:
And my another problem here... I don't know why my first clue didn't work...

Probably the syntax. The main indicator uses parentheses, as

/*+
select /*+ leading(table1, table2) */ *
  from table1, table2
*/

Remember that you must use the table alias name in tips for the identifier to be recognized

You can also consider using the y indicator (if you must use a hint) for several tables - beware, it is MUCH easier to do worse performance with this suspicion using the order of the tables in the FROM clause in left to right

/*+
select /*+  ordered */ *
  from table1, table2, table3
. . .
*/

How I create index will affect how it works?

How the index was created probably won't affect how it works. Indexes can be created using constraints and directly with the CREATE INDEX command. The creation of the index should not be as important as its defined characteristics: index type, columns, etc.

Tags: Database

Similar Questions

  • Office jet Pro 8600: how to change the folder for the scans on my Apple?

    Hi, I want to know how to change the destination for my scans folder when I scan from the printer.  Currently, the scans go to "documents", and I want him to be in a business case.  Clues?  I tried to watch some instructions on the previous posts, but it seems that they are for windows.

    Thanks for the help!

    Hi @jgossc,

    I'd be happy to help you change your scan destination. I understand that when you scan your Officejet Pro 8600 to your Mac, the file analysis is currently underway to your documents and want to let them instead to a business case.

    To change the destination please follow the steps below and let me know the results of your efforts:

    • Open HP utility
    • Select Scan to the computer
    • Click Scan tasks to change
    • Choose a shortcut to scan
    • Select Edition
    • In the options listed here, you should see scan destination

    If this resolves the issue, please click Accept as Solution button below; If not, let me know and I will do everything I can to help. Thank you.

  • Does anyone know how to change the order of iTunes playlists in folders? I am on iTunes 12.3.2.35 thank you.

    I can't figure out how to change the order of playlists within folders or find iTunes help topics that address this issue.  Please help, someone!  Thank you.

    Karin.

    In a playlist folder iTunes sorts the smart playlists in alphabetical, followed by regular playlists in alpha order.  It does not provide a way to change this.

  • HOW TO CHANGE THE WALLPAPER FOR ADOBE AIR AS3 IN BB10?

    HOW TO CHANGE THE WALLPAPER FOR ADOBE AIR AS3 IN BB10?

    Please only start a thread.

    Original thread:

    http://supportforums.BlackBerry.com/T5/Adobe-AIR-development/changing-background-wallpaper-BBZ10/TD-...

  • How to change the password for the user name in the Oracle forum

    I wanted to know how to change the password for my user in the Oracle forum. I couldn't find the navigation to do.

    Ask for a response to my post.

    Concerning

    Date of arrival:

    Getting help: frequently asked Questions

    About your Oracle account

  • How to change the country for the Australia legislation to the Russia

    How to change the country for the Australia legislation to the Russia

    You should probably cancel the account and start a new for the country.

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • How to change the country for the invoicing and purchasing?

    How to change the country for billing and for purchasing ?

    Hi Adriano.

    Visit it change the country associated with your Adobe ID

    I hope this will help. Please write if you need assistance most.

    Kind regards

    Shelly

  • Anyone know how to change the password for the installation of Adobe Flash Player?

    Anyone know how to change the password for the installation of Adobe Flash Player? I have tried everything that I usually use and nothing works. My Adobe ID password works perfectly. I can't complete the installation without this, and it doesn't have a 'forgotten password' button to change it. Any help would be greatly appreciated!

    Thank you

    There is no password required for the installation of Flash Player, at least not on the side of the things Adobe.  It's probably the security of your computer, forcing you to you connect allowing the installation to occur.  Only you would know what would be the connection for this information.

  • How to change the order of the pages in pdf

    How to change the order of the pages of the pdf files scanned

    Using page thumbnails, you can shift the page you prefer. There are two documents icon.

  • How to change the password for all users in the database

    Hi buddies!

    Could someone tell me how to change the password for all users in the database? I want to set the same password for all users.

    Thank you.

    Nith

    Published by: user645399 on March 1, 2011 14:23

    Write the file spooling
    as

    Make sure that all profiles has password_verify_function with a NULL value

    then

    Select 'edit user' | username: ' identified by ;' from dba_users;

    you will get the output... you just run.

  • How to change the order of the keyboard languages

    Yesterday I updated the OS X 10.11.4. Today, I noticed that the order of the keyboard languages has changed, it is not any longer in alphabetical order. In my case, it used to be Canadian English, then Romanian, then Romanian - Standard. Now it is Romanian, then Romanian - Standard, so that English-speaking Canadians. I would go back to the previous command (which was true for OS X Leopard) because he is Canadian English that I use the most and I want him to be at the top. However, I can't be able to change the order. How this could be achieved? Thank you.

    Help! Anyone, please?

  • How to change the order of the download options according to our convience in obiee

    Hi reading,.

    How can I change the order of the download options in the obiee dashboard?

    as if you press the download option you see

    Download Excel
    Download Excel 2000
    Download the data
    Download webpage (mhtml)

    How to change this order. ???

    Download options are installed in OracleBI\web\msgdb\messages\viewscontrolmessages.xml
    -Search the tag ** which contains the download links in the hyperlink tag
    -Each hyperlink tag is a download option
    -To reorganize as you require.
    -The text that is displayed as a link can also be customized by changing the entry for a message like kmsgEVCLinkDownloadExcel in the OracleBI\web\msgdb\l_en\messages\viewmessages.xml [customization is local specific]
    -Restart the presentation server

  • How to change the order of people

    Under El Capitan, I recently spent some time to reorganize manually about 260 faces in a seemingly random way in order of last name. Now under the Sierra Apple has decided to display them in the order first name without the possibility of manual reorganization which is useless and irritating. Any suggestions on how can I change the order?

    In Favorites, you can drag and drop them in the required location - those remaining you can not change the order

    LN

  • Re: How to change the RAM for internal video on the Satellite A665-S5060 card?

    Hello

    My question is how can I change the RAM for my internal video card? I found I only 64 and I want to change it to 256.

    I don't want no heavy games, I just want to change to 256.
    I tried to change it by accessing the BIOS, but I had no luck with it, no option for this, another way, I could do?

    Thank you!.

    Hello

    > my question is how can I change the RAM for my internal video card? I found I only 64 and I want to change it to 256.

    No, you can not do it yourself. The system will automatically change to the need for more ram.

  • How to change the password for Jabber (XMPP) in Messages.app?

    My understanding of the functioning of the Jabber (XMPP) is that the password take place in the email client. I am aware of how to change my password to Jabber via like Adium instant messaging clients, but I prefer to use the built-in client of Messages.app. What I can't understand, however, is how to change my password for the Jabber using Messages.app.

    → Anyone know: Messages.app can be used to change a password account Jabber? ←

    Thanks in advance!

    Hello

    Yes I know.

    Oh, you asked me to tell you?

    Open messages

    Use the App menu > Preferences > accounts.

    Select the Jabber account.

    Uncheck the "enable this account".

    The account is now disconnected.

    You should be able to type in the password box now.

    Just type on the old highlighting and typing.

    EDIT.

    I just read that another way.

    The messages may not make the change to the password at the server end.

    Because you advice I just gave you instructions on how to change the password in the application rather than using the application to change the password on the server.

    Google (who run a Jabber server) can be done online in the account settings (it also changes it for the mail if you use it in Mail as well.)

    Same thing for Facebook Chat (it's also a Jabber server)

    Most of the other servers will have a web page method to do.

    20:07 on Monday. 30 November 2015

     iMac 2.5 Ghz i5 2011 (Mavericks) 10.9
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     a few iPhones and an iPad

Maybe you are looking for

  • SCREEN TURNS OFF VERY FAST

    Salvation; I changed my setting of battery and I have my screen to go to sleep after 10 minutes, but even if I donot work with my laptop it sleeps after a min, what should I do?

  • Windows XP icons, the buttons of the menu, Favorites, files, and Web pages are too big.

    Brower, the menu buttons, icons and Web pages are large icons of Windows xp, the menu buttons, the Favorites file, and Web pages are too big

  • Admin & user folder sharing

    Hello On a computer with 4 users and 1 account admin is thare, a way to share a folder/file between just 1 user and 1 admin account? The user and admin account holders both need to access and update a database of Works, but we do not want one of the

  • Developers of Linksys

    Hi all y at - there no way how to communicate directly with the developers of Linksys? Because that way, I mean forum, we are dependent only on advice of the user and/or experience.

  • Office display size

    My screen on my screen size is huge.  I can't understand how to change it.  I went to the customization and the DpI is the default 100%. How can I get the job "display size s back to normal?