NEGATIVE / NO / not exists - which is the best

Dear all,

I have to run to delete records parent and child on the production database that has very large amount of data (in millions of records) on Oracle10g. Scripts are currently using INs NOT to delete records of child as below:

delete from T1 where T1.x is not null and T1.x not in (select x T2);

I was intending to change it to:

removing the T1 where T1.x is not null and not in T1.x (select x from T2 where x is NOT NULL);

Could someone help me please with a better way to write this? It will be faster if I use LESS or NOT Exists on NOT IN?

Sorry to bother you all with the basic question, but there don't seem to be a specific rule for the use of a higher (may be because Oracle10g uses CBO)?.

Any help is appreciated and thanks in advance.

It doesn't seem to be a specific rule for the use of a higher

There is always 2 responses that are always true:

-Depends on
-Why?

See f.i.: http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1794145000346577404 #1796559000346100662

In your case, the first answer applies.
You should TEST the best solution, there is no general rules regarding finding 'the best' a.
It depends on your data, selectivity your index, statistics etc. etc..

Just measure (explain the plan, trace, tkprof) and test different scenarios and you will find the best solution that works for you.

Tags: Database

Similar Questions

  • white macbook 6.1 10.6.8 (4 GB SSD 512 RAM) which is the best os upgrade for me

    white macbook 6.1 10.6.8 (4 GB SSD 512 RAM) which is the best os upgrade for me

    Computer works wonders but new applications are not supported by 10.6.8

    Unless you have a specific reason to choose one plus one, El Capitan.

    (144668)

  • which is the best Web site program

    Which is the best site that I can buy, it's easy to download changing SKU

    Do you mean a hosting site, or an application to create the site?

    If a hosting site, it is just as easy as another. You use a client like Transmit or Fetch FTP to download your web data on your site. The main consideration is the quality of hosting site and how much you are willing to pay for (usually) annual fee. Most of these sites also automatically renewed your domain name name each year as part of the cost so you don't lose it to the vultures who are trying to jump on the domain names that the payment has lapsed, and then try to sell it to you, or someone else who wants to pick up a solid reputation.

    I started typing in the best web hosting services, and this was the first selected link auto. InMotionHosting just happens to be what I use and I have zero complaints on them in more than a decade of use. Which is best depends on the examiner. Here's another list. And a third just because.

    For the latter's proposal (the creation of your site), I now use Adobe Muse, which got quickly much better. About as close as you can get to visually a site without having to know much about HTML or CSS yourself. Dreamweaver, RapidWeaver is others. There's a lot here , I've never heard of. Most of them uses a large number of pre-constructed templates to speed up the process of building your site. It's good for certain types of sites, not a lot of help to others. Another list of comparison.

  • Which is the best graphic card (fromNvidia) for the first and after?

    Hello, that is the question.

    Which is the best graphic card (fromNvidia) for the first and after? In order to improve the performance of preview and rendering time.

    It's the Gtx 970 good enough? or do I have to go to the 980ti?

    Is there any other better Nvidia in both these needs?

    I have these specs and I work in Full HD:

    I7 4900, 32 GB of ddr3 memory, ssd.

    Thank you in advance.

    I don't know about these two maps first, but AE the GPU makes very little difference at all.

    The current version of AE uses the GPU to very little. The ray-traced rendering engine is the only great thing that AE uses the GPU and this feature is now considered obsolete.

    That being said, if you are using third-party plugins for AE using the GPU (as, for example), it's a different story. For the element, I heard that the 970 GTX is the best bang for your buck; the 980-up would not be worth the price difference.

  • IM updating my computer and I want to transer my suite creative adobe on my old computer to my new computer which is the best way to do it?

    IM updating my computer and I want to transer my suite creative adobe on my old computer to my new computer which is the best way to do it?

    You do not... transfer you disable and uninstall on the old computer (if you won't use this computer) and install it on the new computer

    You install exactly in the same way you did the 1st time... Put your disc in the drive, and enter your serial number when asked

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    -Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html

    -Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • Which is the best for design: Layout Editor 11g vs Plugin Word

    Hello

    I need information about the design of the model which is the best to use the Layout Editor in BI 11g or plugin Word publisher.

    In my workplace, we are unable to decide which one to use for the design template.

    Tried on google but have not found any useful information.

    Share your ideas.

    Thanks in advance.

    The new layout BI Publisher Editor to create reports which have an available interactive output type. The interactive Viewer allows to popup details, tables scrollables, filtering the table, table sorting and filtering through the various components of the report.

    So, if you are interested in providing this kind of functionality, you can design reports with the layout editor.

    Take a look at designer's guide of reports 11g for more details. Also, take a look at this: http://blogs.oracle.com/xmlpublisher/2011/02/interactive_reporting_with_bi.html

    Thank you!
    BIPuser

  • color of the iMac - which is the best to select display options

    There are options on the color of the display - which is the best to select pictures?

    Use the default color for your display profile and if the colors seem to be wrong, for example the aspect very different impressions of what you see on your screen, click on the button "calibrate" and calibrate the screen.

  • Whenever I run Firefox, it appears an error message indicating "Firefox could not install this point because 'install.rdf' (provided by the element) is incorrect or does not exist." Contact the author to this problem. »

    Firefox could not install this point because 'install.rdf' (provided by the element) is incorrect or does not exist. Contact the author to this problem.

    The above statement is in the box pop up error every time, when I run Firefox. If I click on ok in the box of Firefox opens. How can I solve this problem of initialization/launch?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.

    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.

    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

  • which is the best software to create images of cartoon on which i can move to other applications and animate to create cartoons

    which is the best software to create cartoons images I can move other apps and animate.  I want to create the image only, no background or anything like that

    Hi Susan,.

    Please check the CC Flash pro

    For more details: Adobe explore desktop apps | Adobe Creative Cloud

    Thank you

    Atul Saini

  • Can someone tell me which is the best way to have a client to download a folio on their ipad to review customer?

    Can someone tell me which is the best way to have a client to download a folio on their ipad to review customer?

    Hi Winstonian,

    Ask the customer to download Adobe Content Viewer on iPad on the App Store. Then they need a free account Adobe DPS https://digitalpublishing.acrobat.com. Sign-in on the Adobe Content Viewer app.

    You need to share the folio of the producer Folio for e-mail, once shared, they will be able to view the folio on Adobe Content Viewer App.

    Thank you

    Afonso Upreti

  • What are the causes of media error does not exist, even with the inserted disc

    I have a video project of 2 h I want to put on a DVD in NTSC format.  I get a msg of error 'Media does not exist', even with the DVD inserted in the drive.  I checked "Fit content to the space available.  Is the hr project 2 too long to compress the DVD, or are there other possible causes?  I have made a project of 1 1/2 hours without any problem.  I have a lot of hard disk space.

    Download orders

    What version of Premiere Elements and on what operating system works - it?

    The problem is the disc in the tray of the burner not recognised by Premiere Elements. Another frequent related issue is location of burner: burn dialog is empty when the Premiere Elements does not recognize the burner.

    In the problem that you have.

    have a. you tried other brands/types of DVD discs?

    b. If you start a new project and take the new timeline content DVD-video to DVD disc, the problem remains the same?

    B. have you tried to uninstall / free program ccleaner cross / reinstall with antivirus and firewall disabled?

    If you are in a time crunch, you should consider burning the chronology contained in the record and then taking the the VIDEO_TS folder

    recorded in a program like ImgBurn for DVD-VIDEO on DVD production.

    Please check and review and then provide you with the way to details. Looking forward to your results.

    Thank you.

    RTA

  • Which is the best way for a function called identify the class name of the appellant.

    Which is the best way for a function called identify the class name of the appellant.

    (1) sun.reflect.Reflection using the function call
                    Class caller = Reflection.getCallerClass(2);
                    System.out.println("Caller Class Name ::"+caller.getName());
    Trace of function called battery 2) analysis of current threads
                    StackTraceElement[] stElements=Thread.currentThread().getStackTrace();
                    System.out.println("Caller Class Name ::"+stElements[3].getClassName());
    Y at - it all the other ways to achieve the same. What is the best way?
    Called function does accept no argument, I don't want the arguments of function calling function called t.

    Help, please.

    With greetings
    Paul

    798185 wrote:
    Which is the best way for a function called identify the class name of the appellant.

    Y at - it all the other ways to achieve the same.

    SecurityManager

        // 0 is the anonymous SecurityManager class
        // 1 is this class (also works in static context)
        // 2 is calling class
        static Class getClass(int i) {
            return new SecurityManager() {
                protected Class[] getClassContext() {
                    return super.getClassContext();
                }
            }.getClassContext();} 
    
  • Import of Flash CS5 Pr which is the best?

    I look around the web for it, there's a tute which exists in adobe.tv, but there must be a lot of people on the site because it does not load. I checked the forum and I see a few ways to do this so I want to know the differences (quality) or it does not matter.

    Real simple, I have to drop a flash swf, flv or converted to Quicktime in a creative project. It's a second 20 an animation loop. I read I can convert the fla in flv plug a drop which convert the SWF to a third party and which fall, convert .mov and drop that. Can someone let me know what is the way to go here?

    THX

    RD

    I can tell you what I remember doing about 5-6 years, when I need flash animation combined and edited for the TV show, I was working on...

    I remember that I used the flash, loaded file in the FLASH APPLICATION (while it wasn't ADOBE yet, but I got it sort - now it's even easier), and in the FLASH APP scenario I exported this 'film '...

    I remember he had this option - it wasn't under the path FILE-EXPORT. But somewhere, under a tab further to the right (as I recall)...

    And I remember at the time it was the best quality of this flash file I have to work with it first and edit with video...

    Just point to it - it was the era of DV and DVcam - and this is the Format in which I exported my flash files in and also my camera footage was DVcam as well...

    So, if you have all of CS5, try importing flash into ADOBE FLASH and export it as a video here... Although, it is probably possible to place it on the timeline as native flash first today, maybe he still gives a different (better) quality result or gives you additional options to put the flash in video file!

    Just a hint!

    Happy new year and good luck to you!

  • Table or view does not exist - ONLY in the procedure?

    I'm trying to write a procedure that is very simple - the only thing at this point, I'm trying to get it to do is an insert into a table - selected values from one schema to another user (on which I have select privileges to). When compiling, you receive an error ORA-942 - table or view does not exist. However, if I put the same insert statement in an anonymous PL/SQL block, it works as expected. What Miss me?

    Oracle 10.2.0.3.0 on AIX 5.3

    You are missing the explicit subsidies on the table.

    When you issue this through SQL * Plus, or through an anonymous block you use grants which are given by a role.
    Inside PL/SQL procedures, you cannot use the permissions that come with roles. Instead, the user must have appropriate subsidies being explicitly for the operations required on this object.

    GRANT SELECT / INSERT etc. on this table to the user explicitly and it will work.

  • which is the best - oracle 10g / 11g or DB2 UDB / EC 9/9.5/9.7 or mysql 5.0?

    Mr President

    who is the best? most large market reach? What is statistics for the following databases in India and in the world? with the turnover of grater by navigating their database product?

    * 1 ^ st ^ oracle 10g / 11 g *.
    or
    * 2 ^ nd ^ DB2 UDB / EC 9/9.5/9, 7 - it's a product of ibm, but it supports mainframe support oracle mainframe.does? *
    Gold
    * 3 ^ rd ^ mysql 5.0 EE / THIS *.

    or

    * 4 ^ th ^ other (s) - and then specify its best features too.*

    If done Googling package (s) on this issue but don't find a chart or a statistical record for it.is it not in the book of Records oracle?

    Look at it can seek a technical forum off topic but it is so relevant for one student who want to be in the field of database (s)? side by it is relevant for the general database forum side also...

    concerning
    Holmes

    Edited by: s.holmes on July 17, 2009 23:15

    Hello

    Well said Aman.

    @OP,
    We can not campare database to another database which is just useless.
    If you really want to know about the product, then 'Buy' and 'start' using this product, so you can understand what is the pro and cons of each product.

    In short, if you want to know then software Oracle is on top on the market for the database.

    Thank you

    Kind regards
    Taj

    Published by: Mohammed Taj on July 19, 2009 10:51

Maybe you are looking for

  • HP Deskjet 1510: Image scanned in bits

    I'll try to scan my degree but it comes out in the form of different images, IE, the coat of arms is separated from the place of the brilliant down etc. I can't get a full scan of my degree! It's the same thing, recording to JPEG.

  • ENE CIR Receiver Driver

    ~2014.05.13~ I made the switch from Windows Vista to Windows v.8.1 on my HP Pavilion dv7 - 2173cl Entertainment Notebook. I get the following error message: "A problem with your infrared receiver"."Your infrared receiver has stopped working correctly

  • The button for an add-on I just downloaded did not appear, any ideas?

    I just downloaded Reverse Image Search of Dmtr.org , but the button is not appearing to use it. Right-click on an image is not put on the shortcut menu. It is not disabled in the Add-ons Manager.

  • Can I use a quick books 2012 on two different computers?

    We have fast 2012 books, my computer is Vista SP2 and SP3 of XP. Will there be problems when she uses the same QB file on both computers? original title: Quick Books 2012

  • Smartphones blackBerry how to upgrade my BB

    Hello, I am wondering how to get my Blackberry Bold 9700, I do not have an internet plan on my phone so I can't get on the internet at all. But I can use my pc at home. I've heard an update for my BB, but I don't know how to use it. Can someone pleas