Hi! Everyone, I have some problems with JOIN and Sub-query; Could you help me, Please?

Dear Sir/Madam
I'm a student who is interested in Oracle Database and
I have some problems with JOIN and Sub-query.
I hope so many of you could help me.
if i use JOIN without sub-query, may it be faster or not?
SELECT field1, field2 FROM tableA INNER JOIN tableB
if i use JOIN with sub-query, may it be faster or not?
SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
Thanks in advance!

Hi,
fac30d8e-74d3-42aa-b643-e30a3780e00f wrote:
Dear Sir/Madam
I'm a student who is interested in Oracle Database and
I have some problems with JOIN and Sub-query.
I hope so many of you could help me.
if i use JOIN without sub-query, may it be faster or not?
SELECT field1, field2 FROM tableA INNER JOIN tableB
if i use JOIN with sub-query, may it be faster or not?
SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
Thanks in advance!
As the others have said, the execution plan will give you a better idea about which is faster.
If you're trying to see how using (or not using) a sub-query affects performance, make the rest of the queries as similar as possible.  For example, include field3 in both queries, or ignore field3 in both queries.
In this particular case, I guess the optimizer would do the same thing either way, but that's just a guess.  I can't see your execution plans.
In general, simpler code is faster, and better in other ways, too.  In this case
tableB
is simpler than
(SELECT field1, field2  FROM tableB)
Why do you want a sub-query in this example?

Similar Messages

  • I moved to new house where I have wifi base station I made extension via TP-link power line adapter and connect my Airport utility 6.3.2, but I don't now how to set up as a second network with one IP address?Could you help me please?

    I moved to new house where I have wifi base station I made extension via TP-link power line adapter and connect my Airport utility 6.3.2, but I don't now how to set up as a second network with one IP address?Could you help me please?

    Urvergessen wrote:
    +You may have already done this, but do you have the first AirPort Express configured to "Allow this network to be extended"?+
    Could not find that setting anywhere.
    It's in AirPort Utility, AirPort panel, Wireless tab.
    When I'm within the range of the base station I connect normally, but further away the connection drops despite the fact that the other Airport is very close and light is green. Interestingly, my PB Pro has signal almost everywhere in the house, but my iPhone and Mac Mini don't. Most likely just a hardware difference?
    In AirPort Utility with the second Express, in the AirPort panel, Wireless tab, have you checked "Allow wireless clients"?
    The second AP does show an IP address: 10.0.1.3.
    With a "Configure IPv4" setting of "Using DHCP", that suggests that the second Express really is connecting to the first Express. In that case I have no other explanation of your your problem.

  • Hello I have a problem in calculating the apple id Can you help me please   I forgot answer security questions for your account How can knowledge Please help Please reply as soon as possible   I can not buy from camels Store And the rest of the account ba

    Hello
    I have a problem in calculating the apple id Can you help me please
    I forgot answer security questions for your account How can knowledge
    Please help
    Please reply as soon as possible
    I can not buy from camels Store
    And the rest of the account balance  $25
    Message was edited by: lingo azam

    I think you mean App Store.
    Rescue email address and how to reset Apple ID security questions

  • Hello to everyone, I have a problem with my iPhone 5, the dynimic doesn't work... i didn't drop it and didn't contact with water... so should I do? please help me =(  P.S. may be I wrote with some mistakes, so I apologyze for it

    hello to everyone, I have a problem with my iPhone 5, the dynimic doesn't work... I didn't drop it and didn't contact with water...
    so what should I do? please help me =( 
    P.S. may be I wrote with some mistakes, so I apologyze for it

    Hello darkhanfromaktobe,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iPhone: Microphone issues
    http://support.apple.com/kb/ts5183
    Have a nice day,
    Mario

  • I have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    i have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    Will u help me or not?

  • Hi guys. i have some problem with a link from a pdf on-line,when i click on it,the page adds a "%" at the and of the link and says "page not found" because of it

    Hi guys. i have some problem with a link from a pdf on-line,when i click on it,the page adds a "%" at the and of the link and says "page not found" because of it.
    This happens only when a load my pdf file on my server, because if i click on the link when the file is on my iPad, the page opens without problem.
    Any help please?
    thanx

    the % sign is often used when there's a space in a name. HTML doesn't like spaces so it fills them with % or %20
    try, on the end of that link, see if there's a space built into the page or the link when the page was made
    On the web address you may be able to 'backspace' at the end and erase that space to get the address, but whomever made the page possibly put a mistake in the link

  • Why can't i downgrade to mavericks? i have got some problem with yosmite. i would like to downgrade to mavericks.please help me how to get it ? thanks

    why can't i downgrade to mavericks? i have got some problem with yosmite. i would like to downgrade to mavericks.please help me how to get it ? thanks

    Hi here are a couple of links you may find useful, the first is if you have made a time machine backup, the second if you have not.
    http://osxdaily.com/2014/10/22/downgrade-os-x-yosemite-to-mavericks/
    http://www.macworld.co.uk/how-to/mac-software/revert-back-mavericks-from-yosemit e-3581872/

  • I have some problems with element Panel Label and Message.

    I have some problems with element Panel Label and Message. When I create form from VO attributes then I have Label for input text element. If I use Panel Label and Message element then I need to copy LABEL from input text element to Panel Label and Message element LABEL PROPERTY. Can I define in View object that I don't need label and want all attributes in Panel Label and Message element?
    BEST REGARDS

    You can simply remove the label attribute for the input text on the page.
    sid

  • I have some problems with work in Flash cs6

    I have some problem with my game when I created it using adobe flash cs6
    When the duck hits the screen, like from right to left it shows
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at Duck/ducksmove()
      at flash.utils::Timer/_timerDispatch()
      at flash.utils::Timer/tick()
    This is the code so please help check which is wrong
    package  {
      import flash.display.MovieClip;
      import flash.utils.Timer;
      import flash.events.TimerEvent;
      import flash.events.MouseEvent;
      public class Duck extends MovieClip {
      var moveDuck:Timer = new Timer(10);
      var speedX:Number;
      public function Duck() {
      this.addEventListener(MouseEvent.CLICK,KillDuck);
      moveDuck.addEventListener(TimerEvent.TIMER,ducksmove);
      moveDuck.start();
      speedX = 10;
            function ducksmove(evt:TimerEvent):void
      this.x -= speedX;
      if (this.x <=0)
      moveDuck.stop();
      moveDuck.removeEventListener(TimerEvent.TIMER,ducksmove);
      this.parent.removeChild(this);
      function KillDuck(evt:MouseEvent):void
      var p:MovieClip = this.parent as MovieClip;
      p.setScore();
      p.updatecount();
      this.removeEventListener(MouseEvent.CLICK,KillDuck);
      this.parent.removeChild(this);
      moveDuck.addEventListener(TimerEvent.TIMER,ducksmove);

    You appear to be trying to remove the same object twice, first in the KillDuck function and then in the ducksmove function.  If it is removed already you can't try to remove it again because it is no longer in the display list.

  • Hello everyone I have a problem with the app store as secret questions asks me to download the application, the problem is that I do not remember the answers as I do?? thank you very much to all

    Hello everyone I have a problem with the app store as secret questions asks me to download the application, the problem is that I do not remember the answers as I do?? thank you very much to all

    Hello andreabn90
    If you can't remember your security questions go to  Express Lane.
    select iTunes from the list, then iTunes store.        On the next screen select account Management.          There, select iTunes store account security and write that you would like to reset your security questions and / or answers.
    You should get an eMail reply over the next 24 hours.

  • HT3702 Dear Customer Support... I have some problem with In-App Purchases and i can not Report a Problem  in Itune

    Dear Customer
    I has one Iphone and I have some problem with In-App Purcases Because my sister purchased In-app when she play
    and i can not report a problem in Itune,
    I inadvertently purchased all of this application in Order Number: MH*****4H5  Date: 04/09/12 ,Order Total $36.81
    So i can't use App store on my phone Because have problem Billing info and i dont want this order, I inadvertently purcased all of this application
    Hopefully I can ge help from you as well.
    Best Regards
    <Edited By Host>

    These are user-to-user forums, you are not talking to Apple here. All purchases are considered final, but you can try contacting iTunes support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I have some problem with In-App Purchases

    Dear Customer Support,
    I have some problem with In-App Purchases
    Because my 4 year-old daughters purchased  In-App when he play
    and i can not Report a Problem  in Itune
    I inadvertently purchased all of this application below.
    Order Number:
    Receipt Date: 16/04/12
    Order Total: $99.99
    Billed To: MasterCard
    Diamond Dash,140000 wooga
    Report a Problem In App Purchase   $99.99
    Payment Card Total $99.99
    Hope I can get help from you as well.
    Best regards
    <Email Edited by Host>

    Hi, ddddda
    I've got the same problem, same rate.
    I called to Apple Support and she recommended me to report by this link.
    http://www.apple.com/asia/support/itunes/contact.html
    (Select topic .. App store)
    Within 6 hrs, Apple replied me with this.
    >>>>>>>>
    Dear Charin,
    Josh here from the iTunes Store.
    I understand your son made a purchase accidentally that you would like refunded. When it comes to your money, I can certainly appreciate how important it is to feel that you are treated fairly, and I would be more than happy to help you out with this today.
    Please read my entire email as I have included information about your refund, what was purchased and how to avoid these type of purchases in the future.
    Charin, the charges in question are for in-app purchases. An in-app purchase is a purchase that can be made within an Application on an iPhone or an iPod Touch.
    In-App purchases are items you can buy that will assist you in advancing in the game you're playing. Some examples of In App Purchases are: bonus game levels or maps, additional experience points, subscriptions, and recurring services.
    The Application "Diamond Dash" was free, and this is the Application that was used to purchase the in-app items. The in-app purchases were for "1000 Gold" to be used when playing "Diamond Dash."
    Please note that there is a 15 minute window after initially entering in your password, where the password is not requested again. Once this time has passed, you will be requested for your password, and also to confirm the purchase by tapping the Buy button.
    To prevent any further in-app purchases from being made unintentionally, please set the in-app restriction on your device(s) as soon as possible. You can set the in-app restriction on an iPod Touch, iPhone or iPad by following these steps;
    1) Click on the "Settings" Application
    2) Now from the list of options click on "General"
    3) Scroll down and click on "Restrictions"
    4) Under the heading "Allowed Content" be sure that "In-App Purchases" is "OFF."
    After reviewing the circumstances of your case, we determined that issuing you a refund for your unintentional purchase of "1000 Gold" is an appropriate exception to the App Store Terms and Conditions, which state that all sales are final. In five to seven business days, a credit of $99.99 should be posted to the credit card that appears on the receipt for that purchase.
    The iTunes Store provides a warning message that asks if you are sure that you want to buy an item. This warning can be turned off. If you would like to make sure that this warning is on, you can reset the warnings in the iTunes Store by following the instructions in this article:
    Resetting iTunes Store warnings
    http://support.apple.com/kb/HT1734
    Additionally, you can make modifications on certain devices that will prevent them from making purchases:
    iPhone, iPad, and iPod touch: Understanding Restrictions
    http://support.apple.com/kb/HT4213
    Please let me know if you require any further assistance with this issue, as if you do, I would be glad to help. Thank you very much for being part of the iTunes Store family, Charin. I hope you have a great day.
    Sincerely,
    Josh
    iTunes Store / Mac App Store Customer Support
    Please Note: I work Sunday 7 AM - 3:15 PM, Monday 4:00 PM - 11:30 PM, Tuesday 3:30 PM - 11:30 PM, and Friday 7:00 AM - 3:15 PM
    All times are EST.
    Thank you for allowing me the opportunity to assist you.
    >>>>>>>>>>>>>>>>>>>>>>>>>>
    Once i've got any development, I'll posted here.
    remark : This app "in-app purchase" no need for password confimation in buying dialogue.

  • I have some problem with home sharing

    I have some problem with home sharing. I have iPad, iPhone, MacMini, MacBook and Apple Tv. Five items. I can't add other items to home sharing, like iPhones and pc of my sons, and my wife's pc. More than home (Family) sharing it becomes Single sharing. Is there any solution?

    Post in the iPhoto forums.

  • I HAVE SOME PROBLEM WITH I PHOTO HOW TO TAKE BACKUP AND REINSTALL I PHOTO

    I have some problem with IPHOTO,How to take back up and reinstall i photo. Everytime i start I PHOTO there is a message showing that 15 photos have been recovered do you want to save or not,whatever i do it creates empty folders and it asks two times before starting .
    any sollutions?

    Post in the iPhoto forums.

  • Hi, guys. I have some problems with my ipad. It has been switched off and it does nor respond on any actions

    hi, guys. I have some problems with my ipad. It has been switched off and it does not respond on any my actions

    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

Maybe you are looking for

  • Ipod mini

    I emptied out my ipod, so it had no more songs on it and itunes says there is only 1.53 gb available, that 2.24 gb are used up -what is taking up that 2.24 gb space - when I put songs on, I can only fit 400+ songs on my mini using itunes - when I loo

  • Error in import data using datapump

    Hi all, I just install oracle 10gR2 in my local machine and tryied to import data in 9iR2 database. But it ended with errors. Here r the steps I have followed.

  • How to run a Oracle 6i report in SunSolaris

    I have developed a Oracle 6i report in NT, but i am unable to run it in SunSolaris , under report6i server , any suggestions regarding this topic are welcome.. Thank U in advance Amit

  • How do I upgrade previously puchased songs?

    I used to be able to upgrade old music to iTunes plus until I got the new version of iTunes. Now I can't find any links for it in the store. I went to "help" and it said to go to the music store and follow the online instructions, but there are no in

  • Delete photos on my iPad that have arrived via photostream.

    I want to delete photos on my iPad that have arrived via photostream. I have managed to delete photos from the photostream, but not photos on my iPad already arrived. Any help?