Is IN the behavior of the operator in deterministic?

Hello world

My version of DB is

BANNER

----------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi

PL/SQL Release 10.2.0.1.0 - Production

CORE 10.2.0.1.0 Production

AMT for Linux: Version 10.2.0.1.0 - Production

NLSRTL Version 10.2.0.1.0 - Production

Please watch these queries below. (executed in schema Scott)

Q.Find on employees who are also Manager?

Select * from emp where empno in (select emp mgr); -This request is to get employees who are responsible.

Q.Find on employees who are not responsible?

Select * from emp where empno not in (select emp mgr); -This request is not to pick up anything. Why so much?

For employees who are not responsible that I wrote the following query.

Select * from emp e where there is no (select 1 m emp where e.empno = m.mgr);

So my question is, why 'not in' operator does not work here in the case of no matching record, while 'in' operator is able to pick up the corresponding records?

Kind regards

BS2014.

Question of the NULL values returned by the subquery.

Select * from emp where empno in (4711,1522, NULL);

is translated into

EmpNo = 4711 GOLD empno = 1522 GOLD empno = NULL

one of the 3 conditions has to be completed for the State as a whole to be true

Select * from emp where empno in (4711,1522, NULL);

is translated into

EmpNo! = 4711 AND empno! = 1522 AND empno! = NULL

all 3 conditions must be met because they are connected by an AND

Problem:

EmpNo! = NULL will never be like the correct way to check against NULL IS NOT true and not! =

So what should take you this:

If you have a subquere connected to the master using a NOT IN query, then make sure that no NULL values are in the result set of the subquery.

In your case:

Select * from emp where empno not in (select mgr from emp where Bishop is not null);

HTH

Tags: Database

Similar Questions

  • Use the 'Open with' dialog of the operating system

    Whenever I have right click on a file in Xubuntu and choose "open with another application...". "the next dialog box is presented by the operating system:

    https://support.CDN.Mozilla.NET/media/uploads/images/2015-07-29-00-31-36-e5da3e.PNG

    That's nice and I like Firefox/Thunderbird to the same behavior. But if these applications do not have a default application assigned the MIME type of that the following dialog box appears:

    https://support.CDN.Mozilla.NET/media/uploads/images/2015-07-29-00-31-45-80c2c1.PNG

    I don't want to add MIME types to FF, I want to change the window/dialog box that appears when I want to open a file with an application 'other '.
    Is it possible to say that by default, the operating system 'Open with' dialog box should be used?

    Thank you.

    Concerning
    Tim

    you could be wrong here - that points to https://bugzilla.mozilla.org/show_bug.cgi?id=1129873 , that will be fixed in firefox 41 (I have not read all the details it y still)

  • Many commands disabled in the operator interface

    Hello

    I use the full IO in c# on a system with a basic deployment license, and I see that a lot of commands is disabled, for example single-pass and execution (only Test DUT is active); also "Break" and "Break all ' in the menu debug is disabled when the system is running.

    I remember those who are active on other systems in the operator interface and I also checked that it uses the model that I use on all machines.

    What can cause such behavior?

    Best regards

    Peter

    Peter,

    It is a question of privilege.  What are the permissions of the user that logged in TestStand.  If it's an operator then you will see thos grayed out like that.  If it's a developer, technician or administrator, so they should be available.

    Kind regards

  • How to use Labview "" buttons"" in the operation of the program?

    I try to use the ok button to run the program adds to the value of the cluster X Y (millemetre) [which is the operation of machine vision] with value X Y offset [which i will to enter myself] but... I don't ' know how it does do, now I try to use the structure of the event, but it does not work

    Please give me some advice please... by the way I've got to do this thing made by 3 days because of my calendar... thank you

    This software is also to locate the orientation for robot to cling to the object using the CCD camera

    Place the structure of the event within a while loop. Take a look at some of the examples provided with LV, for sure, they show it.

    Then, use the change event of value for the ok button (square button of the terminal that fram for the locking behavior set correctly).

    You can pass the data of XY to the loop to output in the same framework of the event to read the moment you press the ok button.

    Felix

  • the operation could not be completed error 1035 com.apple.mobilephone

    I have phone 7 and a mistake on putting in place the reception of voice mail

    the operation could not be completed error 1035 com.apple.mobilephone

    Same error message, even tried operation. iPhone 6, iOS 10.0.1

  • The operation cannot be completed because you do not have the necessary permissions.

    The operation cannot be completed because you do not have the necessary permissions. This is the message I get when I want to create a new folder. I don't have this problem until recently. 1.

    How should I do?

    2 is that there is a security breach?

    I use sierra but, I had the same problem with el Capitan

    When you try to create a new folder? is it an external device? your office? a NAS?

  • I have several items in my trash that I can't remove. I get the message "the operation cannot be completed because one or more required elements could not be found. (Error code - 43) "when I try to do.

    The operation cannot be performed because one or more required items be found.

    (Error code - 43)

    I have several items in my trash that will not delete. I get the message that precedes, when I try to do. I deleted successfully other files using "delete immediately", but these just won't. I also can not move out of the trash to another folder.

    I'm using an iMac with OS X El Capitan 10.11.6 operating system

    Have you tried the instructions in the order that they are arranged in you may not empty the trash or move a file to the Trash - Apple Support?

  • Transcend Jet 360 Lite SD care & "the operation cannot be completed because an unexpected error occurred (error code - 50)"

    Have used the SD Transcend 360 256 MB card for data storage with success during the last 6 months on my MBP to mid-2014.  Installed their wake from sleep early support software.

    Above error code invite you in this context: I wake up Mac in the morning after sleep.  Transcend icon "wake up" and appear on the desktop (as it should).  I check disk utility and the card is recognized.  HOWEVER, about 1/3 of those mornings, despite appearing and functional map icon (folder open when I click on it), when I try to write/copy a file or folder to it, I get the above error code?  For about a week I missed that everything seemed normal.  My current 'fix' is to eject the card (requires a 'forced ejection"which I'm concerned could damage the card?), but the card ejects without delay.  90% of the time when I remove and reinsert the card, the operating system recognizes, all right.  (There are a dozen times when I had to reboot for it to be recognized.)

    All the others did this experiment with the Transcend (I submitted a request for tech support to them with a persistent response of 'Question Mac'... (LOL).  This error has been noted several times on the Forum discussion, but in the context of external drives and with no apparent solution.  FYI, I use the Transcend (in addition to external systems) b/c it works essentially like a hard drive internal and I use it mainly for Google Drive perfectly... except for the above inconveniences.  Thanks in advance!

    This is the Office Mac Pro forum. I asked that your post moved to the forum of laptop MacBook Pro or another appropriate forum.

  • Why I get this trying to empty the Trash: the operation cannot be completed because the item "IMG_0645.jpg" is in use

    After selecting and dragging some photos of Photo on the desk I have their attached to an e-mail and sent them to the coast. Then I selected the 5 photos on the desktop and put them in the trash. When I tried to empty the trash later I received the following message: the operation cannot be completed because the item "IMG_0645.jpg" is in use.

    Aren't these photos on the desktop 'copies' of the originals in the Photo?

    All wise users out there with an answer?

    stop, disconnect all external devices

    Restart your computer in safe mode

    Try safe mode if your Mac does not end commissioning - Apple Support

    empty the trash after checking the files in there are of no use to you

    arrested again

    Reconnect the external devices

    reset.

  • Can someone tell me how to upgrade the operating system on the MacPro?

    I have a MacPro1.1 which works fine, but now I can't use LightroomCC on that because the OS is no longer supported. Can someone tell me how to upgrade the operating system on the MacPro?

    Your Mac Pro 2006 supports only as high as Lion unless you use a hack.

    If you want Lion then order a code to download here:

    http://store.Apple.com/us/product/D6106Z/A/OS-x-lion

    and then use the code in the Mac App Store.

    If you need higher that the Lion then Google for the hack

  • QuickTime is saying "stopped the operation" when you try to share on Youtube. Why? And how to fix it!

    My computer told me that my boot drive was full and I had to make room before recording my video, so I went to 'share' on youtube so that I wouldn't lose for good (cannot be recreated - for a class), and in the middle of download he stopped and said "the operation stopped. Now, I can't click on anything or do anything! I'm terrified that I'm going to lose.

    Stop trying to 'share on Youtube' & find a better way to back up your data.

    Your task will be to keep fault for this reason... QuickTime allows you to convert your movie in another format from Youtube, it takes disk space - you already have too little disk space, if the operation fails. If you keep trying you can simply make the disk is too full for that it starts properly!

    A better solution is to find a USB hard drive or even a flash drive & save the files on that so you can delete files on your disk to free up space. Running with no free space will cause many weird questions.

    There are a lot of apps that allows you to copy your entire drive - ask if nee help you with that. Creating a bootable backup is the best way to avoid data loss. Relying on Youtube to keep important files is a very bad idea - they often files down if violations of copyright are found etc.

  • Connection to Firefox Sync does not work due to "SecurityError: the operation is not secure.

    Hello everyone,

    I wanted to update my Firefox Sync account from the old to the new version. Unfortunately, the login page does not load on my laptop. On my Android devices, everything works fine, so I could already put in place the new account from there, I just can not connect to my new account sync on my laptop. I use Firefox on Windows 8.1 Pro 64 bit 33.1.

    The subject: represents the loading of the landing page as usual, but by clicking on the button connect does not load the login form, just blank white box. I asked my dear friend Google who gave me some answers (seems to be a common problem...), but none of them helped me.

    The debug console displays the error "SecurityError: the operation is not secure" directly after loading on: accounts? action = signin. Opening of https://accounts.firefox.com/signin and https://accounts.firefox.com/signup also results in the same error and an empty box white. https://accounts.Firefox.com/legal/privacy works fine as usual.

    I have not found a solution to work around this SecurityError so far.

    I found another answer which finally solved my problem! Apparently the subject: in the page accounts raise this error because I configured Firefox always ask before accepting a cookie. https://github.com/Mozilla/FXa-content-server/issues/1857

    Even when weird things, but now I have to work around him.

  • The operation cannot be performed because the "Firefox" element is in use.

    Whenever I try to download the latest version of Firefox on my mac, I get the following error:

    "The operation cannot be performed because the"Firefox"element is in use."

    I close Firefox and still get this error. I tried this guy 100 times and may not know how to solve this problem. Help!

    I have Mac OS X 10.6.8 v.

    Download the full Firefox installation program and save the file to the desktop
    https://www.Mozilla.org/en-us/Firefox/all.html

    If he has problems with the update or with the permissions then best is to download the full version and trash the version currently installed to do a fresh install of the new version.

    Download a new copy of the Firefox application and save the file to disk on the desktop image

    Your personal data are stored in the Firefox profile folder, so you will not lose your bookmarks and other data to personal when you uninstall and (re) install Firefox.

  • Limited to the version of the operating system

    Is there a restriction on the version of the operating system that I can update my iPad to old mothers of?  In iTunes, it says that there is no update.  It's on iOS 5.1.1 but when I try to install a game to her, it says that I need at least version 7.1.  I guess the age of the iPad, MB292LL model, he can't possibly run the latest version of the operating system.  Please tell me I'm wrong.

    If she maxed out at 5.1.1 so this is a first generation iPad and Yes, unfortunately it can no longer be improved. Later this year when iOS10 comes out there will be additional models that can not be upgraded from 9 to 10.

    What you can try, never sync you your iPad to iTunes? If you try to download that game via iTunes if there is a version of the application remains compatible with 5.1.1 then who should download on iTunes and then you can sync it on the iPad.

    If they are not then you may just be stuck. The model of the iPad 1 is 5 years old, unfortunately, unless the users already have apps on it can be difficult to find a compatible more

  • My iPhone-ish syncs with macbook pro when it comes to iTunes. Message reads "iPhone need latest version of iTunes. I can't understand how to upgrade iTunes on the iPhone, unless it comes to update the operating system. I guess I have the latest OS, 9.3

    My iPhone-ish syncs with macbook pro when it comes to iTunes. Message reads "iPhone need latest version of iTunes. I can't understand how to upgrade iTunes on the iPhone, unless it comes to update the operating system. I guess I have the latest OS, 9.3.2 on my iPhone. Any help for this problem?

    • Sync with iTunes on a Mac or a PC requires:

    iTunes too old and too old osx to support necessary to have iTunes, you will need to update osx to update iTunes to work

Maybe you are looking for

  • Satellite A300 - 1 5: keyboard and touchpad not working

    I have problem with keyboard and touchpad. Laptop satellite A300 - 1 5 I have Vista home premium and when I turn on the computer, I put password in the user box then my keyboard and the touchpad do not work. In the Bios my keyboard work but when Vist

  • Can I charge my iPad using a voltage converter and an outlet of 50 Hertz in Europe?

    IF I want to reload my iPad in a foreign country with 230 v AC and 50 hertz can do with a (at 115 v) voltage converter and still using 50 Hz instead of 60 Hz? Who will work ok without damage to the iPad?

  • MacShiny the experience of someone?

    So, my wife gave me his MacBook when it was updated, I'm only a few months as a Mac convert and feeling my way. One of the first things I noticed was the slow my computer seemed to work, I ran the ClamXV she had asked any questions, didn't seem to ha

  • End of file error

    Hi all I received the following message when playing a file file:"end met" see attached photo. In fact, I want to read the total amount of the line of my file in order to build an array of item based on this entry. The only way I've found is to read

  • BlackBerry Smartphones setting common POP / IMAP email without BIS

    Hello everyone! I'm new to BlackBerry and problems with the configuration of e-mail. My operator (Megafon, Russia) does not support BIS. So I use standard applications of BB with difficulty (for example, Internet browser works only in the WiFi area).