Performance JOIN specified in FROM rather than WHERE

Greetings,
Now that 9i can use the JOIN keyword, I was wondering if there is a performance difference between the following two approaches:
1.
from
table1 t1 join table2 t2 on t1.field1 = t2.field1
2.
from
table1 t1, table2 t2
where
t1.field1 = t2.field1
I'm new to using 9i, but in DB2 the first approach is much more efficient than the 2nd approach. I was wondering if Oracle might have similar advantages?
Many thanx for your thoughts.
Regards,
-matt

Lets take a look:
SQL> set autotrace traceonly
SQL> select empno
2 from emp e, dept d
3 where e.deptno=d.deptno;
14 rows selected.
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 NESTED LOOPS
2 1 TABLE ACCESS (FULL) OF 'EMP'
3 1 INDEX (UNIQUE SCAN) OF 'PK_DEPT' (UNIQUE)
Statistics
0 recursive calls
2 db block gets
4 consistent gets
0 physical reads
0 redo size
900 bytes sent via SQL*Net to client
503 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 empno
2 from emp e join dept d on e.deptno=d.deptno;
14 rows selected.
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 NESTED LOOPS
2 1 TABLE ACCESS (FULL) OF 'EMP'
3 1 INDEX (UNIQUE SCAN) OF 'PK_DEPT' (UNIQUE)
Statistics
0 recursive calls
2 db block gets
4 consistent gets
0 physical reads
0 redo size
900 bytes sent via SQL*Net to client
503 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
14 rows processed
SQL>
Execution wise and statistically these two queries are the same. Experiment with more complex joins, maybe the results will differ.

Similar Messages

  • HT1766 How can I select an older backup to restore my device from, rather than restoring from last backup performed?

    I did a backup after doing a sync with my iTunes only to find that I un-ticked the sync apps box, resulting in my apps to be deleted and most of them losing their data. I have all the data of these apps on backups I did previously to the most recent one but don't know how to select older backups.
    Is their anyway to restore my device from an older backup, rather than the most recent one?

    Knowing where backups are stored is one thing, interpreting them (and getting them back to your iOS device) is another!
    If you did your sync, but no backup immeiately after it (for some reaon some people do) then you may have success. Without connecting your iPad to our computer, go to the screen I mentioned in my earlier post and put a tick in the box PREVENT IPOD .... FROM BACKING UP AUTOMATICALLY and click OK. Then connect your iPad and restore from the previous backp if it is there! You can then go back and change the PREVENT...... setting.
    When you get this all sorted out you can consider iCloud for additional backups. If you do not use iCloud routinely then you can switch it on temporarily to do a manual backup, even multiple backups.
    However, you can trick iTunes into doing additional backups by changing the device name. For instance, you can do a backup under the device name of, say, Liam's iPad, then change the iPad name to Liam's iPad 1, Liam's iPad 2, etc with a backup under each name! Whichever backup name you use in due course to restore your iPad is the name that will appear as your device name under Settings on the iPad.

  • With multiple inboxes, when I switch from one to another the inbox view is at the top rather than where I was when I switched to the other. This is new.

    One inbox is a pop inbox with many messages in it. The other is an imap inbox. If I am working at say, message 2000, in the pop inbox, then switch to the imap inbox, and later switch back to the pop inbox, the inbox view is inconsistent. If there is a new message in the pop inbox when I switch back, the view starts with the newest messages including the new message. If I switch to the imap inbox and no more messages arrive in the pop inbox while I am working the imap inbox, when I switch back to the pop inbox the view starts at the oldest message (in my case #1 of 4900 - requiring a long scroll to get to the newest messages). This behavior is new in the version I am using (24.6.0) on a Mac (10.9.3) so apparently an update changed it. I'd like to always return to the bottom (newest) message when switching to the pop inbox, so if there is a preference setting for that, please let me know, I couldn't find one. Otherwise please fix it.

    The first part of this response is regarding the volumn of emails int he Inbox folder. I'm writting about this (although it is not your query) because I would not like to think you could lose all your emails.
    I would strongly recommend that you do not save all of your pop emails in the Inbox folder, as it is designed to be an Inbox for incoming mail and not a general store.
    You may see a folder in the FolderPane, but in reality your emails are stored in mbox files. Emails are downloaded and stored one after the other in the order downloaded. So, at this moment, you have one single mbox text File with all of your Inbox emails written one after the other into a single document.
    Recommend you create some folders and manage your emails.
    After sorting them out, you could compact the Inbox to remove any 'marked as deleted' emails.
    When you delete an email, from your point of view it goes from Inbox to Trash. In reality it is still in the Inbox, 'marked as deleted', so it is still using space. When you compact your Inbox it removes those 'marked as deleted' emails.
    If any corruption occurs in that file eg; TB cannot detect the end of a 'marked as deleted' email, then it may end up deleting a load of emails.
    So I would not compact (a task that should be done on a regular basis) until you have organised your emails into other folders:
    See info on how to maintain a healthy Thunderbird and compacting - why it is so important.
    * http://kb.mozillazine.org/Keep_it_working_-_Thunderbird
    * http://kb.mozillazine.org/Compacting_folders
    '''Re; List of emails - view the recent incoming mail.'''
    I would advise you have the most recent at the top, then you do not need to scroll. This option works in much better way for instantly locating new mail.
    Click on the 'Date' column header to reverse the order.
    or View > Sort by > Date and descending

  • I want to download Firefox 4 rather than 5. Where do I get this older version from?

    I want to download Firefox 4 rather than 5 in order to test an app. Where do I get this older version from?

    Please click the '''Solved It''' button next to the answer that answered or solved your Firefox support issue, '''''it appears when you are logged in''''', so this thread gets marked as '''Solved''' to help other users who may have this same problem.

  • HT201269 I used Article: HT2109 to transfer everything from my iPod touch 3g, iOS 5.1.1, to my iPod touch 5g, iOS 6.1.3. Why did data from apps did NOT move to the new device? Games are starting over rather than picking up where they were on the old devic

    I used Article: HT2109 to transfer everything from my iPod touch 3g, iOS 5.1.1, to my iPod touch 5g, iOS 6.1.3. Why did data from apps NOT move to the new device? Games are starting over rather than picking up where they were on the old device?

    - If you restored the 5G frmm the iTunes backup of the 3G were th app in the iTunes library of the computer you used? They have to be.
    - If yes then try again. When I first restored my iPad 4 from the iTunes backup of my iPad 1 app data did not transfer. I tried again and it did.

  • Where do I get the download from iTunes button art, rather than just stealing from someones site

    where do I get the download from iTunes button art, rather than just stealing from someones site

    Interesting. It looks to be available from the iTunes Affiliates resources for everyone:
    Affiliate Logo Guidelines and Art
    ... although it also says you ought to be an affiliate to actually use it.
    It might be worth checking in with Apple Legal to see what the requirements are for using it, first. Here's contacts:
    http://www.apple.com/legal/contacts.html

  • Search results load in the current tab rather than the new tab where the search was started from.

    Steps to reproduce:
    Open a new tab
    Using the search bar (for Google) within the page on the new tab, enter a search query and press enter
    Quickly switch to a different tab
    The search results will load on the different tab rather than the tab where the search was started from

    hello, can you try to replicate this behaviour when you launch firefox in safe mode once? if not, maybe an addon is interfering here...
    [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • I purchased an audio book from itunes and downloaded to my pc rather than my laptop.  How can I transfer it to my laptop which is where I download to my iphone?

    I purchased an audiobook from itunes.  I downloaded it onto my home computer rather than my laptop, not realizing that you can't download onto your iphone from more than one source without deleting everything else.  How do I copy the book to my laptop so I can download it to my phone?

    I downloaded the audiobook to my laptop, but now want it to be on my iphone. How do I download it to my iphone?

  • Can i change imported RGB colours to specified CMYK colours quickly in Indesign rather than doing ea

    Can i change imported RGB colours from a word doc to specified CMYK (already in the swatch panel) colours quickly in Indesign rather than doing each one manually?
    Is there a script so you can allocate rgb colours to cmyk colours?

    oh yeah, I see... You definitely need a script, so you better post this request in script forum. Since it quite scriptable (I believe), you need to know exactly (tell to the script) what colors to find and change to what. So it would work only on the specific pre-defined list of colors. I'm using something very similar regarding the fonts (I get regularly files where I need to change bunch of fonts to their alternatives). Not sure if it's possible to modify it for colors - I see some essential differences here. I'm not a scripter...

  • Why do bookmarks go automatically in "recently bookmarned" rather than folder i choose; how keep book mark list from scrolling

    when i create a new bookmark, it is automatically filed in "recently bookmarked" rather than the folder i choose. when i subsequently go to the "recently bookmarked" folder, drag and drop the bookmark in a different folder, there will be 1 in the folder that i choose and 2 in the "recently bookmarked" folder; if i delete both bookmarks in the "recently bookmarked" folder, it will delete the link in the folder that i originally tried to move it to.
    1. how to save new bookmarks in the folder i choose
    2. how to move bookmarks from "recently bookmarked" folder permanently
    3. remove the default setting of where the bookmarks go
    another problem is preventing the bookmark list from scrolling - i detest it and would like to turn this option off!

    Your bookmarks are most like stored in the Unsorted bookmarks folder if you have created them by clicking the star in the location bar.<br />
    You can click the highlighted star another time to open the "Edit This Bookmark" dialog and move the bookmark to another folder.
    *https://support.mozilla.org/kb/how-do-i-use-bookmarks
    * "Most Visited" and "Recently Bookmarked" and "Recent Tags" are examples of so called [[Smart Bookmarks folders|Smart Bookmarks folders]] and are not real existing folders.
    * Such smart folders show a list created by a query of the places.sqlite database that stores the bookmarks and the history in Firefox.
    * Smart folder lists show a maximum of 10 entries by default.
    * Bookmarks or history items that show up in a smart folder list are stored elsewhere in another folder and any changes made are applied to the real bookmark or history item.
    * Actions like copy & paste or delete that you perform on bookmarks in such a list are done on the original bookmark.

  • Join conference via Lync call rather than Call Me At

    We have deployed Lync Server 2013 and are just beginning to deploy it in small doses to portions of the organization.  We are using a combination of Lync 2010 and 2013 for clients.  This post is regarding the Lync 2013 client.
    We use Lync with Cisco telephony via Remote Call Control.  We do have PC-to-PC calling enabled in addition to RCC (the Telephony setting in Lync Control Panel on the user accounts is "Remote Call Control").  We are not using Enterprise
    Voice.
    After deploying Lync as simply an IM + telephony client, we have begun to focus on rolling out the web conferencing functionality.  In doing so, we have noticed strange behavior which I describe below.
    Let us assume that someone other than me creates web conference by selecting two people, including me, in their Lync contacts list in the client, right clicks, and selects "Start a conference all" and then chooses "Lync call".  I
    see a Lync toast notification appear, inviting me to a conference.  It says the conference organizer's name and says "Conference Call".  If I click the toast to accept the conference, my Cisco telephone extension immediately begins to ring. 
    In the meantime, in the Lync conference in the client I see "Join Conference Call" and "Other".  If I answer answer my telephone extension or push the Join Conference Call button, I am successfully joined to the Lync audio conference
    and can speak with anyone else that joined the conference, whether they are using Lync audio or Cisco telephony.
    The problem is that there are cases where we want to do a video conference.  I am aware that can only be done if using Lync audio rather than the Cisco telephony.  I can disconnect from the conference call by hanging up my Cisco extension. 
    When I do so, the Lync conference in the client shows a notification that gives me the option to rejoin the conference.  The "Rejoin" button has a down arrow, and if I expand it I can select "Rejoin using Lync Call" and if I do that
    I can now see others' webcams and can share my own webcam with the conference.
    My question is: how can I elect to join the conference in the first place with a Lync call rather than having the Lync conference bridge dial my Cisco extension?  There does not seem to be a way to do this that we can get to work.  For instance,
    I mentioned that after I have clicked the Lync toast notification after being added to the conference and my Cisco phone begins ringing that I see the options "Join Conference Call" and "Other" in Lync client.  If I open the Other
    options, I see "Join using Lync Call" as an option.  If I select that option, my Cisco phone answers the call and I am joined to the Lync audio conference with my Cisco phone and not Lync audio.
    Please note that I already checked the Phone section in the Lync 2013 client options and the box "Before I join meetings, ask which audio device I want to use" is checked and the "Join meeting audio" drop-down box is set to "Lync".

    Sorry, I misread your question and now see that I did not pre-emptively answer it.  I just tested it and unchecked the box "Before I join meetings, ask which audio device I want to use" and made sure "Join meeting audio" was set to "Lync".  Even
    after doing so, the behavior is the same:  the Cisco phone automatically rings and any action to join the conference results in the Cisco phone extension being picked up.
    Basically, it seems that if you use that "Start a Conference Call" option from the Lync contacts list, the Lync preferences set in the recipients' Lync clients are ignored.  If you schedule a Lync conference via Outlook or people use the Lync meeting
    URL in their Internet browser, it does respect the preferences correctly.  It seems like it might be a bug.
    I would be interested if any other Lync Server 2013 users with Lync client 2013 and using RCC could repeat my tests and see if they have the same issue.

  • I'm getting the rainbow wheel when I try tp pen in internet page (Safari). The page half loads then appears to freeze with the rianbow wheel.  I get the same result when I try to stream a movie from NETFLIX.  Freezes up rather than plays (after loading).

    I get the rainbow wheel when I try to open an internet page. It loads halfway, then freezes, with the rainbow wheel whirring around. Smae thing happens when I try to stream a movie on Netflix.  The movie loads, then the wheel shows up and the screen freezes.  Same thing when I try a DVD, it takes the disc, but won't play when I hit on PLAY.
    I am repair permissions, and all that I can do, but I am a novice.  Any help would be greatly appreciated because I spend big bucks and drive 40 miles to get Apple help.
    Sharon in the woods of Idaho

    Welcome to Apple Support Communities.
    If your profile info is up to date, you probably have a 2006 or 2007 MacBook with a CoreDuo or Core2Duo.
    It probably came with 512MB or 1GB RAM memory and a 60, 80, or 120GB hard drive.
    You're still running OS X Tiger, 10.4.
    Your DVD drive may be dirty or wearing out.
    For specifics about your computer, click on the  Apple Logo in the menu bar, then About This Mac, and More Info... to find details.)
    You may be running short of hard disk space. You should have at least 10% free, or 10 to 15GB free for best performance. Less than that, and your hard disk is spending lots of time searching for places to store data.
    Complex web pages and sites like Facebook and Twitter, and pages using Adobe Flash, and high-bandwidth applications like video streaming from NetFlix can all cause your computer to run slowly, and the fan to run at high speed, because the processor is working hard. Conversely, email is not terribly resource-intensive, and probably still works pretty well.
    Several things can each provide a small performance increase (listed in no particular order):
    Adding more RAM memory. Upgrade to 2Gb to give your programs a bit of 'breathing room', especially if you are running more than one program at a time.
    Erasing the hard drive and reinstalling the current operating system and programs from scratch. This erases all your existing programs and data. Unless you have backups and program discs, you lose everything currently stored on it.
    Installing a higher capacity, faster hard disk, say 250GB or 320GB will give your programs and data more space, and perhaps faster access if you replace the factory 5400rpm drive with a 7200 rpm drive. If your current hard disk is nearly full (less than 10% free space), the drive has to 'thrash' to free space to store information. 
    Upgrading the operating system to OS X 10.5 Leopard or OS X 10.6 Snow Leopard. Both are discontinued OS X versions, still available to order directly from Apple, but not likely found on a store shelf any longer. An upgrade to OS X 10.7 Lion might not be possible for your MacBook (details here: http://www.apple.com/macosx/how-to-buy/), and Lion would likely cause a further slowdown, because honestly, Lion is optimized for newer, faster dual-core or quad-core computers with fast video chipsets and 4GB or more of RAM.
    A faster internet connection, for example: I switched internet providers to get a 3.0Mb DSL connection (up from a 512Mb connection) for an extra $10 per month, and saw downloads and internet browsing speeds increase dramatically.  With the slower connection, it was not possible to watch video.
    Will all of these upgrades together get you close to the performance of the latest MacBook Air or MacBook Pros? NO!
    Ultimately, you have a 4- or 5-year-old computer, and spending up to several hundred dollars for upgrades might not be a worthwhile investment for you, versus applying that much money toward the cost of a new(er) Mac, and perhaps passing your MacBook on to a friend, child, or grandchild who needs mainly email capability.
    If a brand new Apple is not in the budget, consider a refurbished Mac from the Apple Store online. These are reliable computers from 'last year's models' and have the same 1-year Applecare warranty as a brand new model, and often sell at a discount of 10 to 30 percent of the price when the model was introduced.
    I'm using a mid-2007 MacBook, purchased as a refurb from Apple in late 2007. It came with 1GB RAM, a 120GB 5400 rpm hard drive, and OS X 10.4 Tiger. Over the years, I've upgraded it twice. Firs to 2GB, then to 4GB RAM, to a 320GB drive, then to a 500GB 7200 rpm hard drive, and to OS X 10.5 Leopard, and then to OS X 10.6 Snow Leopard. Rather than one more round of upgrades to OS X 10.7 Lion, I'm saving for a newer MacBook Pro or MacBook Air at some time in the future.

  • How can I to return to the same position on a web page where I left it, rather than automatically getting returned to the top of the page?

    It's annoying to keep returning automatically to the top of a web page that I often navigate away from--eg, Google News--rather than to the position I was at when I left it. I've looking over the Firefox settings and can't find where the default can be changed.

    Try holding down the ALT key while you hit the left arrow key.
    But in some cases, the webmaster may have configured the page to load from the beginning again. There's not much you can do about that unfortunately.

  • I have a file where I store my download music. When I click on "add music" to my ipod my music file opens, but rather than have to drag one song at a time to my ipod, how do I copy the entire file at once to my ipod. - steve

    Hi - I have a file where I store my downloaded music. When I plug in my ipod and click on "add music" my file appears. Rather than drag one song at a time, how can I download the entire list at once? - steve

    I am not doing it in ITunes, but i did down load the song from ITunes.  I loaded the song on to my Nano, but in my menu selections it doesn't show the song or the artist in any search format.  However, when i plug in my nano to my PC I see the Nano library on my PC drive listings and that song and artist are there.  I can click on the song and it will play in Windows media on my work PC.  I did notice that the format for most all the songs in my library on my Nano are MPEG - 4 audio Files. 
    Thanks for your help, Mel

  • I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    I cut and pasted a description from the Internet. It posted as a link in iPhoto. It seems to have made a global change--all my descriptions are now blue, underlined, and Times Roman 12 rather than Arial white. How can I get this back to the default?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

Maybe you are looking for

  • Actionscript 3 problems

    Hi All Wondered if someone could help as Im struggling to get my head around moving form as2 to as3. At the moment im struggling wiht how movieclips are handled. All i want to do currently is dynamcially create movieclips to house images, thse then n

  • SYST-UCOMM

    Hi I am FICO consultant. I was trying to construct a substitution rule in transaction OBBH.  The pre-requisite for this substitution rule is that when the user saves the document then only this rule should trigger and work. It seems i should have val

  • Missing .ard file

    Hi, I am using B1DE Steup for 2007.  I don't know why using SPA B1 AddOnInstaller.NET Wizard and seems work properly but cannot find any .ard file in B1AddOnInstallerNet.  Normally when i using the old version of B1DE and the .ard file will exist in

  • Getting my things back

    i restored my ipod because i was going to update my ipod touch to ios 6.1.3, i did backup my ipod, twice actually, everything i had on my ipod was deleted, so i went to back it up, and it itunes said it wasnt saved onto my computer ive tried everythi

  • How to update spry tab on all pages?

    Hi, Hope someone can help me. I created a template and have been building new pages. I didn't make the spry tab an editable region. Since I'm adding more and more pages I'm adding tabs as drop downs from the spry tab. However the pages I already made