What is IS NULL doing in replacing NOT EXISTS operator with an outer join?

DB version:10gR2
An example from searchoracle.target.com
The query which contains a NOT EXISTS operator
SELECT M.ModulId, M.Modul FROM MODULE M
WHERE NOT EXISTS
( SELECT PROJEKTMODUL.IdModul
  FROM PROJEKTMODUL
  WHERE M.ModulId = PROJEKTMODUL.IdModul
  AND PROJEKTMODUL.IdProjekt = 23 )is replaced by an equivalent outer join query
select distinct
       M.ModulId
     , M.Modul
  from MODULE M
left outer
  join PROJEKTMODUL
    on M.ModulId = PROJEKTMODUL.IdModul
   and PROJEKTMODUL.IdProjekt = 23
where PROJEKTMODUL.IdProjekt is nullI don't understand what
PROJEKTMODUL.IdProjekt is nullis doing in the above rewritten query.

It is to perform an Anti-Join. As far as I know Oracle (starting with release 10g - I thought Release 1) rewrites your NOT EXISTS and NOT IN query to a Anti Join which looks like your second query.
Look at the results of the query without the IS NULL predicate and see which records (from that set) should be selected to show the same results as the first query. The records of interest match the predicate IS NULL.

Similar Messages

  • Why does my iMessage not work even with my apple ID signed in?

    Why does my iMessage not work even with my apple ID signed in?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom
    BTW- Your profile shows you have iOS 6.1.4 installed. The max iOS for an iPad is 6.1.3. iOS 6.1.4 is for iPhones only.

  • Replace an existing file with a new one

    This is probably a very simple problem. I have a script that is making an XML document. I am sucking information out of a database and exporting it as a XML file. The script runs just dandy except when I want to update the text file I receive an error along the lines of "the file already exists".
    What code do I use to replace an existing file?
    tell application "Finder"
    set theFile to "donky.xml" as string
    set theFullName to mySavePathAsText & theFile
    set theNewFile to make new file at myPath with properties {name:theFile}
    write myFinalText to file theFullName
    set the extension hidden of theNewFile to false
    end tell
    I assume I would use the "replacing yes" command but that is not working or I am not doing it right.
    Any help much appreciated.

    Hello
    Two things.
    • 'open for access file _path with write permission' will create new file at the path given in _path if it's not present.
    • 'set eof' command will clear the existing contents of the given file, which lets you replace the contents.
    So you may try something like this. (Finder is only used to set 'extension hidden' property of the file)
    Good luck
    H
    -- SNIPPET
    set theFileName to "donky.xml"
    set theFullPath to mySavePathAsText & theFileName
    try
    set fref to open for access file theFullPath with write permission
    set eof fref to 0 -- clear the existing contents
    write myFinalText to fref starting at eof
    close access fref
    on error errs number errn
    try
    close access file theFullPath
    on error --
    end try
    error errs number errn
    end try
    tell application "Finder"
    set extension hidden of item theFullPath to false
    end tell
    -- END OF SNIPPET

  • Opening a new tab in safari opens an untitled tab while replacing the existing tab with top sites

    When I open a new tab in safari, it opens an untitled tab while replacing the existing tab with top. Then if I have other tabs open, the website url of the page I was on before I opened the untitled tab freezes and is shown on each other tab.
    How can i fix this problem? It is starting to occur with increasing frequency.

    I had the same problem and I suspect you are using Glims. I uninstalled Glims and voila, problem gone. I reinstalled Glims and the problem returned.
    Link to Glims uninstaller for those who have this problem http://www.MacHangout.com/dwnlds/Glims-UnInstall.dmg.zip
    I'll report the bug and hope they fix it soon, I like Glims.

  • If i replace my existing website with muse website will google search it?

    If i replace my existing website with new website made in adobe muse on same domain will google search it?

    Hi,
    If Google has already indexed your site, it will keep checking your site, but make sure you update sitemap in google webmaster tools, if you have some new pages in new site, google will index them and if you have some pages renamed or removed asked google to remove it. You can check some details here
    https://support.google.com/webmasters/answer/164734?hl=en

  • Mvc4How does on replace ValidateAntiForgeryTokenAttribute.Salt Property with AntiForgeryConfig.AdditionalDataProvider ??? ‎

    I updated to mvc 4 and got this error that :
    ValidateAntiForgeryTokenAttribute.Salt Property (System
    [ObsoleteAttribute("The 'Salt' property is
    deprecated. To specify custom data to be embedded within the token, use the
    static AntiForgeryConfig.AdditionalDataProvider ...
    How does this replace ValidateAntiForgeryTokenWrapperAttribute :
    FilterAttribute, IAuthorizationFilter which is used an attribute on a class and
    is used for validation from an ajax posting involving
    __RequestVerificationToken: getAntiForgeryToken????
    Do I just get of all the classes that have the
    [ValidateAntiForgeryTokenWrapper] attribute applied to them and some derived class from IAntiForgeryAdditionalDataProvider interface.
    I have not found one example are solution that said what to do or how to
    change the classes that [ValidateAntiForgeryTokenWrapper]  applied to them, and
    replace them whith this  AntiForgeryConfig.AdditionalDataProvider. Any advice
    Below is the ValidateAntiForgeryTokenWrapperAttribute  class used. It is applied as an attribute to a class. The error is thrown where Salt = salt line of code. So how exactly do I replace that line of code by AntiForgeryConfig.AdditionalDataProvider?
    Please do not give me links to explanation or link to where someone tried some other way which does use AntiForgeryConfig.AdditionalDataProvider which usually causes another half million errors. I am looking just how to replace the Salt and suggested. Source
    code to and a project is what I am looking for to show how this works
        [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method,
    AllowMultiple = false, Inherited = true)]
        public class
    ValidateAntiForgeryTokenWrapperAttribute : FilterAttribute,
    IAuthorizationFilter
            private readonly
    ValidateAntiForgeryTokenAttribute _validator;
            private readonly AcceptVerbsAttribute _verbs;
            public ValidateAntiForgeryTokenWrapperAttribute(HttpVerbs verbs) :
    this(verbs, null)
            public ValidateAntiForgeryTokenWrapperAttribute(HttpVerbs verbs,
    string salt)
                this._verbs = new
    AcceptVerbsAttribute(verbs);
    AntiForgeryConfig.AdditionalDataProvider = salt;
                this._validator
    = new ValidateAntiForgeryTokenAttribute()
                        Salt = salt
    AntiForgeryConfig.AdditionalDataProvider = salt

    I tried to start a thread in that forum,  But every time I click on the sign button in internetexplorer the nothing happens. I used Chromed and when I clicked on the sign in sheet I was able to sign in, But when I clicked on the start a new thread
    in the mvc forum I was redirected to the sign in sheet again. That Microsoft for sucking the big one as usual
    steven frierdich

  • Replacement For Not Exists operator in oracle

    Hi Guys,
    I need a replacement for the statement " Where NOT EXISTS (SELECT 'X' FROM ADM_SC_SHIPPING_HEADER_FACT WHERE prod_obj = s.prod_obj AND sc_shipping_doc_num = s.sc_shipping_doc_num AND TO_NUMBER (transportation_status) > TO_NUMBER (s.transportation_status))".
    i am getting an error"literal doesnot match the formatting string" when this statement is included in my procedure.
    Please help me out..
    Thanks in advance.

    1007699 wrote:
    There is no problem with Transportation_status. It is a varchar and it's been converted to number using To_Number .There very likely IS a problem with transportation_status.
    It's supposed to be a number and you're trying to convert it to a number using to_number(), but the error message you're getting implies that there's a value in that column that isn't a valid number.
    If it's not that field, then there must be some othe implicit type conversion going on with one of the other columns in your subquery - 'cos that's what that error message means: "I'm trying to convert from one datatype to another, but it's not in the format I expect".
    Either fix your data to conform to the proper format, or explicitly specify a format that describes your data, or (best of all) use a proper and consistent datatype for your columns. If transportation_status is a number, why store it in a varchar2 column?

  • Why does my iTunes not play Videos with AC3 passthrough?

    Hello everyone,
    I have a problem with my iTunes on my Mac (recent iTunes, recent OS X). As the title says, I can't play videos, that contain AC3 Audio. If I try to play a video with AC3 in iTunes, it just doesn't start playing. When I jump to a later chapter, it just shows one still frame but it doesn't start playing. QuickTime plays every video without any problem. I tried it with (self-encoded) Full HD (1080p) and also SD videos.
    QuickTime doesn't have any problem and also my 3rd Gen Apple TV streams the Video without any problem from iTunes... moveis I bought from the iTunes store also work without any problem in iTunes, as they all contain an AAC-Audio track. I didn't recognize that issue before I updated to Mountain Lion... or maybe to the latest version of iTunes.
    Does anybody know what possibly is the reason for that and how to solve it? Thank you!

    OK, I found another thread here, where my problem has already been solved. It works fine now. For everyone who got stuck on the same problem and finds my thread first, here's the solution, that helped me:
    - download A52Codec.component
    - move it to /Library/Audio/Plug-Ins/Components/ and replace the existing file
    Best regards,
    Michael

  • ORA-00942 - What is the table or view that not exists?

    Hi,
    Is there any way to identify which table or view that the error message refers, in a SQL code (select, insert, etc)?

    SQL> select * from garbage;
    select * from garbage
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> insert into garbage values (1);
    insert into garbage values (1)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> update garbage set a = 1;
    update garbage set a = 1
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> delete from garbage ;
    delete from garbage
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> drop table garbage;
    drop table garbage
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>

  • Using an "if not exists" command with a folder on an SMB share

    I'm trying to use an "if not exists" command on a folder which is stored on a mounted smb share..
    This part of my script is supposed to check if a folder exists and;
    If it does - Skip to the next part of the script
    If it doesn't - Create the folder.
    At the moment it either errors saying that the folder doesn't exist or doesn't create the folder.
    I can get this script to work fine using local folder paths but I want to do it on an SMB share..
    Here's my script.
    Many thanks in advance.
    Martin
    set username to (do shell script "whoami")
    set Media to " Media Files"
    mount volume "smb://172.22.8.23/macmedia$"
    tell application "Finder"
    if not (exists ("smb://172.22.8.23/macmedia$/" & username as text) & Media as text) then
      make new folder at "macmedia$" with properties {name:(username as text) & Media as text}
    end if
    end tell
    tell application "Finder"
    set mnt to ("smb://172.22.8.23/macmedia$/" & username as text) & Media as text
    try
      mount volume mnt
    end try
    eject "macmedia$"
    end tell

    Hi Camelot,
    Thanks a lot for that the script's working as it should now..
    I'm still having intermittent problems on some clients where it will only map the root volume "macmedia$" and freeze there.. This is a problem as they can then see and access everyone elses folders from there.
    Do you know of a better/cleaner way to do what I'm trying to acheive? All i'm after is mapping an additional drive for student's so they can save larger files to our media server within their own folders.
    Is there a way of checking if a folder exisits within an smb share without mounting the volume? Just trying to think outside of the box a bit..
    Here's my new script;
    set username to (do shell script "whoami") & " Media" as text
    mount volume "smb://172.22.8.23/macmedia$"
    tell application "Finder"
              if not (exists folder username of disk "macmedia$") then
      make new folder at disk "macmedia$" with properties {name:username as text}
              end if
    end tell
    tell application "Finder"
              set mnt to ("smb://172.22.8.23/macmedia$/" & username as text)
              try
      mount volume mnt
              end try
              eject "macmedia$"
    end tell
    Many thanks,
    Martin

  • How do I replace my existing HD with a new one

    I have existing drive with my catalogues. I want to use my new 2T WD drive as a replacement for my existing HD which is not working well. Do I clone the original and how do I tell LR 3 to recognize the new drive?  Using Mac Lion.

    By reading the user manual that came w/your router, contacting the manufacturer and/or visit their customer support/troubleshooting website. 

  • Can't open vcf file. "The file may not exist ... Out of memory or system resources"

    Trying to open a vcf file (vCard) from a user.  After double-clicking file, get message:
    Cannot open file: C:\folder\filename.vcf. The file may not exist, you may not have permission to open it, or it may be open in another program. Right-click the folder that contains
    the file, and then click Properties to check your permissions for the folder. Out of memory or system resources. Close some windows or programs and try again.
    I have Outlook 2010 with SP2.
    Similar error, different problem.  Has workaround:
    http://community.office365.com/en-us/f/172/t/198029.aspx
    I turn OFF cached exchange mode.  I double-click the vcf file, it opens fine.
    I turn ON cached exchange mode.  I double-click the vcf file, I get the erorr message again.
    We have hosted Exchange, so we can't turn off cached exchange mode in Outlook.
    Is this a bug?  Anybody know of a fix?
    By the way, if I save one of my contact as a vcf file
    and double-click it, it opens fine.

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Best Regards,
    Steve Fan
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Does Apple replace faulty MacBook Pro with retina in Asia?

    I bought a MacBook Pro with retina display in July 2012. Recently my MBPr developed some issues. I feel like something moves (or slides to and fro) inside the Mac when I take out the computer from the bag and hold it in my hand. I don't know whether I have been able to explain the issue as I'm not a native English speaker. I contacted the retailer I bought the Mac from. They told me they can only change the faulty parts if there are any, but they cannot replace the Mac for a new one because  Apple does not replace any Mac in Asia. The prerogative is only in Asia, Europe, Australia and the US. Is it really the case? If things turn out that Apple cannot make good on its warranty without replacing the Mac what shall they do in that case? Could you pls explain?

    As best I know, after 14 days Apple will repair your MBP if it is within the warranty period for free.  In rare instances, if they have not been able to repair it after several attempts, they may replace it.  I suggest contacting Apple and ship your MBP to the for inspection/repair or bring it to an Apple store or an Apple reseller.
    Ciao.

  • What UPS or AVR Does OS X Detect and Integrate with?

    Hi. I think some UPS like the ones offered by APC support OS X software (OS X can detect and perform some stuff with it) using a separate (I may not have the USB slot for that anyway but I can make one free if that feature is really important). Are there any brands that supports OS X?
    I'm not that interested in the UPS that has power backup coz' it's too expensive for the VA or wattage for my whole setupwhich includes other gadgets (like a Dremel, and 2 desk electric fans used for some crafts and hobbies) and it may not have as many as 8 outlets which I need. I'm more interested in a UPS brand that is as good as APC or even better at giving the iMac 27" i7 and the other gadgets quality electrict current. I already have a Belkin surge suppressor, do I only need an AVR (which might be too expensive) is the one I should combine the surge supressor with? Also I'd like to support smaller companies than APC that is as good (a kind of charity for the smaller but good companies to keep those smaller ones in business).
    The maximum wattage all the gadgets including the iMac is around 635w (APC recommends in their calculator their UPS with 1000VA which is too costly).
    I also read that we should avoid UPSes that only have a simulated or modified sinewave (the one to get should be the true sinewave but it's more expensive). What's the story on that?
    I've seen other brands in order of availability AVR or UPS: FSP which seems to be designed in the US and is a US company, then there's Buffalo, Intex, Izuki, Voltac, Stac, Matsunaga, Stavor, Intex, Yaden, Cyberpower, Tripp-Lite,
    Recommendations are welcome. Thank you in advance.
    Gbu.

    ummmm the problem is when i sync to Mobile Me my birthday dates change by a day (forward) e.g my birthday is the 8th and when i sync to Mobile Me and check online (www.me.com/contacts) my birthday date is ok, none of them have chage by a day
    *BUT*
    if i sync back down to another device it will change my birthday to the 9th. (even another mac, iphone, windows XP computer) all computers are set to New Zealand time zone.
    (it always changes the dates of my birthdays every day of the week every time i sync. no error comes up it still syncs)
    i dont think Mobile Me is offset. but i think in OS X it is.
    so the time zone on Mobile Me would be +12 but the time zone in OS X would be offset so making +13
    thats what im thinking in my head is that sounding right to you or am i way off haha
    thanks for helping by the way.

  • WRT54GL not co-operating with my switch..

    Hey,
    I recently moved into a new place and quickly got to work setting up my home network. I'm currently using a Motorola SB5102 Cable Modem connected to a Linksys WRT54GL wireless router. Off the bat things were working fine, my PC as well as two laptops were connected and everything was happy. I then moved on to my XBOX, Wii, TV, HDPVR and BluRay player to get them online as well. There was only 1 ethernet jack available behind the TV, so I went and bought a Linksys switch (EZXS55W) so that all the equipment would connect to my network.
    Then things started to get bad... Once I introduced the switch to my network, things started getting wonky. None of the devices plugged into the switch were able to access the network. The error messages coming up from the devices were that my router wasn't giving it an IP address. So then I assigned the devices manual IP addresses, and things worked well for a while. Today I accidentally unplugged that switch, and when I plugged it in again, all the equipment plugged in through the switch are now not connecting again... Not through manual nor automatic IP configurations.
    I have updated the firmware on my router and I can't figure out why it's not working... Anybody have a situation like this and knows what needs to be done to fix it?
    Thanks!

    I'm not sure I understand why it won't work... The switch has 6 ports on the back, 1 uplink and 5 others... You said "you can use only one of them". I'm confused.. Here is a little picture of what I have going on:
    Wall -------- Modem ------- Router  ------- PC
                                                                |
                                                                ------ Switch ------ XBOX
                                                                                    |
                                                                                    ------ Nintento Wii
                                                                                    |
                                                                                    ------ Sony TV
                                                                                    |
                                                                                    ------ BluRay Player
                                                                                    |                                                                                ------ HDPVR
     Hopefully that makes it a bit clearer.. If only I had Visio on my laptop hehe... If that picture wouldn't work, could you please adjust it to show how it would work?
    Message Edited by kooliokevin on 12-30-2009 07:35 PM
    Message Edited by kooliokevin on 12-30-2009 07:35 PM
    Message Edited by kooliokevin on 12-30-2009 07:35 PM
    Message Edited by kooliokevin on 12-30-2009 07:36 PM
    Message Edited by kooliokevin on 12-30-2009 07:36 PM
    Message Edited by kooliokevin on 12-30-2009 07:37 PM

Maybe you are looking for

  • Photos in last import, smart album, not in events, or photos

    I just build a new iPhoto library, from a large folder of masters.  It took many hours to complete, and all photos and events showed up that I imported. I exited the program, had it commit all changes to database. I reopened iPhoto and imported my iP

  • If I subscribe for a year, canI use CS6 on more than 1 pc? (work and home)

    As the title really - just want to know if I join I will be able to use the account to use PS at work and at home? Thank you

  • Showing null fields when using a seach function

    Hello The SQL below works fine except it will display records iif CAMPAIGN_NAME is null Any ideas where I am going worng is very welcome Thanks Pete select CAMPAIGN.CAMPAIGN_KEY,      CAMPAIGN_CODE,      CAMPAIGN_NAME,      LANGUAGE_NUMBER from     C

  • Print another PDF inside Oracle Report

    We print an oracle report to PDF via oracle Forms, some customers have seperate PDFs that they want to link to the run oracle report. Ideally they want to merge the two into one document. Has anyone had any exprience of this or know of annyway to ach

  • 1/3 of my addons don't work/places.sqlite corrupts every single day

    You've got to stop throwing these updates out like cat vomit. PLEASE notify the addon makers so that they have time to update the addon for the latest version. One-third of my addons don't work with 5.0. Why can't you put a addon check BEFORE the ins