Whats the Problem in "not in" ??
See the Table Desc and values then the query what is the problem in final query
SQL> desc date_test
Name Null? Type
SNO VARCHAR2(1)
ADD_DT DATE
DEL_DT DATE
SQL> desc date_test1
Name Null? Type
SNO VARCHAR2(1)
ADD_DT DATE
DEL_DT DATE
SQL> SELECT TO_CHAR(ADD_DT,'DD-MON-YYY') FROM DATE_TEST1;
TO_CHAR(AD
09-APR-008
09-APR-008
10-APR-008
11-APR-008
SQL> SELECT TO_CHAR(ADD_DT,'DD-MON-YYY') FROM DATE_TEST;
TO_CHAR(AD
09-APR-008
09-APR-008
09-APR-008
09-APR-008
09-APR-008
09-APR-008
09-APR-008
10-APR-008
11 rows selected.
SQL> SELECT ADD_DT FROM DATE_TEST WHERE TO_CHAR(ADD_DT,'DD-MON-YYY')IN (SELECT TO_CHAR(ADD_DT,'DD-MON-YYY') FROM DATE_TEST1);
ADD_DT
09-APR-08
09-APR-08
09-APR-08
09-APR-08
09-APR-08
09-APR-08
09-APR-08
10-APR-08
8 rows selected.
SQL> SELECT ADD_DT FROM DATE_TEST WHERE TO_CHAR(ADD_DT,'DD-MON-YYY') NOT IN (SELECT TO_CHAR(ADD_DT,'DD-MON-YYY') FROM DATE_TEST1);
no rows selected
Many thanks
kalinga
NOT IN does not work correctly if any of the values are null.
Null means unknown - if we don't know what it is, how can we know whether or not it matches? Oracle's response to this is to not return any rows.
Either NVL the value in the NOT IN or explicitly select where add_dt is not null.
Further explanation:
Imagine we're spelling out the NOT IN explicitly. Then it becomes
(field != row1value AND field != row2value AND...field != rowNvalue)
If row1value is NULL then this is a direct comparison involving NULL so it returns false. Because it is AND, that means the whole condition returns false. So you get no matching rows.
Message was edited by:
Dave Hemming
Similar Messages
-
I am using chat-r wireless and facetime is not working but when i put rogers fido or any other carrier sim in it work. Anyone know what the problem?
I'm guessing it's a compatibility problem similar to that that T-Mobile in the US has. I'm not familiar with chat-r wireless, but I'm guessing it's not a supported carrier for the iPhone. If they can't tell you how to fix it, I'm guessing it's just plain not going to work.
-
Go figure both Apple support and Netflixs support "have never seen a problem quite like mine" the same day my free trial has ended. And no the, problem is not with my Netflixs account because they charged my debit card just fine. I'm trying to play instant movies on my netflixs account and every time I click on a movie or show it just shows up a black screen with no play controls. According to Netflixs I'm either missing a peice of software or I need to uninstall and reinstall a program or plug-in or something. At first they thought it was Microsoft Silverlight, but I've tried uninstalling and reinstalling that several times and nothing has changed, plus since I had no play controls as well the problem is definetly not Silverlight. So I was wondering what other types of software or plug-ins are needed to play Netflixs movies or if anyones else has had the same issue and knew how to fix it. And I know that it is a problem with my Macbook Pro, because my netflixs accout still works on my sister's computers. I've tried restarting my computer, restarting Firefox, signing out and back in on Netflixs, praying to God, clearing my cookies and chache, saying nice things to my laptop, yelling at my laptop, and pretty much everything under the sun. Nothing I do is fixing it. Please someone help me figure this out.
MacBook Pro / Mozilla Firefox / Netflix / Silverlight Update solved - DON'T DWNLOAD FROM NETFLIX
I solved this problem tonight. I have a MacBook Pro with 10.5.8. I know, it's old. But I love my Netflix and I recently noticed that Firefox plays Netflix much better. Then I suddenly got this message that I needed to download the latest Silverlight - it only takes 30 seconds! - WRONG. However, after much searching, I finally did the steps in order and it worked.
This was after repeatedly downloading Silverlight from the Netflix site without success. So here's what I did:
1. Went to http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
2. Followed the directions. I felt like such an idiot for not doing it right before.
3. Go to your hard drive and search for "Silverlight" to locate ANY existing Silverlight files: .dmg, etc.
[also check your Libary/ Internet Plug-ins, but the above search is faster]
4. Drag it all to the trash and empty it.
5. Go back to the Get Silverlight page and click on the Install on that page, not the Netflix site.
6. Note the steps for Safari or Mozilla Firefox - I wanted Firefox, so I follwed those instructions.
7. Once it's installed, close all the browsers and Restart that bad boy. Right away.
8. Open a browser, go to Netflix and proceed to joyfully rot your brain with Netflix content. Yay! -
when I tried to update to the new version of Itunes - message box appears "APSDAEMON.EXE MSVCR80.DLL is missing". Then another box indicates "Error 7 (Windows error 126)". Itunes will not start. Can someone tell me what the problem is and how to fix?
Solving the iTunes Installation Problems in Windows
1. Apple has posted their solution here: iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue.
2. If the Apple article does not fully resolve the problem for you, then try Troubleshooting issues with iTunes for Windows updates - MSVCR80. -
I have a issue with my mac book pro. For some reason it won't stay powered on. I can't get past the apple loading logo. The battery is fully charged so it is not the problem. Can anyone tell me what the problem may be and how can i get it resolved?
The battery is fully charged so it is not the problem.
What happens when you use the MagSafe? -
I have tried rebooting phone/app. Phone is connecting to Twitter/iTunes/AppStore all fine. Not sure what the problem is. Every time I hit sign in I get "could not connect to game center server".
same problem on iphone 4s. Other people posting problems too. Must be on Apples end.
-
Firefox keeps crashing now that I have Windows 8. I have updatd my Adobe Flash and am not sure what the problem is. Very frustrating.
Hi may you please ask a new question, sclutterd, it gives us troubleshooting info. Nightly is pretty unstable anyways.
* https://support.mozilla.org/en-US/questions/new -
The sound quality of my speaker suddenly got really poor when playing music or videos. Sounds like an old AM radio or Sputnik. Pretty sure it's hardware related but maybe not. Thoughts on what the problem might be and if it can be repaired?
The batterys the ipods come with are very sensetive somtimes they dont react right to the first couple of charges. Try fully charging it and then leaving it on until its completely drained a few times. If that doesnt work it might be a lemon.
-
Time Machine will not let me restore from backups after June, 2013. I can see the files on the external hard drive but Time Machine skips all of them and goes back to June, 2013. Does anyone have any idea what the problem is?
rtilghman wrote:
telling me to buy a new router is NOT a solution.
And why not? Apple is selling these things like BigMacs. They can't make enough of them. You've been suffering since May because you refuse to get a decent router.
Can you imagine if a company that makes a refrigerator told me that I needed to upgrade my electrical system to rectify a problem with their device? What kind of response IS that?!?!
What if the problem with their device is that it requires a new-fangled "grounded" outlet and your circa 1890 house doesn't have grounded outlets. Would you refuse to purchase a $ 25 adapter on principle? -
I have always heard that Macs are less likely to get infected with a virus. My computer has been running much slower since I installed Maverick. Just not sure what the problem might be. Is there a way for me to run a diagnosis?
Some have found relief just by reinstalling, but it is more than likely incompatible third-party applications that slow it down.
You will have to investigate to see what it is.
Open Activity Monitor and see if anything is using a lot of CPU% or Memory. If they are, check to see if there is an update for them.
Another place to look is the Console. See if anything is logging repeating messages with throttling and/or respawn in the All Messages list.
Sometimes it is not that easy to root out the problems, but if you have anything that purported to clean, protect, optimize, maintain, or flush your system, then that is likely the cause. -
Everytime I use IE, first I have to click on the IE bar to allow blocked contect to display. What is the content that is being blocked from IE? viewers may not know what the problem is and see my site totally out of format.
discoveriweb wrote:
This is iweb development where after publishing, things look different in IE than other browsers. U r correct that this is due to IE software but is iWeb related. After all, one uses iweb not to just publish in Safari but for all browsers.
Which means that you are only considering half of the problem, but that's your choice.
I'm out. -
Hello. I have a new Computer and import my mediathek with an externe storage. When opened the new Mediethek in front of every song there is a explanation mark: original song could not been found. I try everything. Whats the Problem??
But it seems the OP has a setup where the media is on the external drive, and the library files are on the internal. This is what I refer to as a split library, Migrating such from one computer to another is not straightforward. Often iTunes will have some definite idea about where the files should live, and updating the setting of the media folder won't change that. If it requires a drive letter change that is usually not too hard, but sometimes there is another preference file that needs tweaking to indicate which of the old & new layouts for the library is being used. In more extreme cases I have a script for automatically making track by track repairs.
tt2 -
Some movie rentals i can transfer from ipad but most not! Whats the problem? They are all SD. Some are watched others not. It just seems to be a fluke sometimes that they show up in the rented movies when i sync. And bought movies I always have to manually transfer to my computer!
How did you rent them ? From http://support.apple.com/kb/HT1657 :
If you download a rented movie on your computer: You can transfer it to a device such as your Apple TV (1st generation), iPhone, iPad, or iPod if it’s a standard-definition film (movies in HD can only be watched on your computer, iPad, iPhone 4 or later, iPod touch (4th generation or later), or Apple TV). Once you move the movie from your computer to a device, the movie will disappear from your computer's iTunes library. You can move the movie between devices as many times as you wish during the rental period, but the movie can only exist on one device at a time.
If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer. -
A java virus disabled the click + at the left to open new tab. I have reinstalled firefox but the problem is not fixed. what do i do to fix this?
admins of forum feel free to edit post.Try disabling the Ask Toolbar extension.
-
I am running a 7 year old MacBook Pro 15. Since upgrading to Yosemite I can not run my airport express' without having to reset each of them every time I wish to use them. I did not have this problem with Mavericks OSX. Does anyone know what the problem is and is there a fix?
See
What is a kernel panic,
Technical Note TN2063: Understanding and Debugging Kernel Panics,
Mac OS X Kernel Panic FAQ,
Resolving Kernel Panics, and
Tutorial: Avoiding and eliminating Kernel panics for more details.
Maybe you are looking for
-
Can't Delete files because OSX says it's "in use"
Hi, I downloaded a couple of fonts (.ttf) a while ago and I'm trying to delete them. But when I try to empty the trash it tells me that they can't be deleted because the files are "in use". I've checked the system processes and I can't find any ttf f
-
Make a router out of a simple notebook with one NIC (buy a second NIC)
Hello all, Before starting, I think I must say hello to you because I'm new here : this is my first post . So, in fact, I'm working with Linux since 5 years. I'm running Gentoo on my workstation and my old server, Ubuntu on my notebook and for family
-
my ipod touch cannot be detected by my computer or itunes i've reset it and uninstalled/reinstalled itunes and it still detects it as if it's a camera
-
Error with iTunes Account and iPod Touch
A few weeks ago, I tried to download an app, and after typing in my password, nothing happened, so i returned to the App Store, and downloaded it again. Suddenly, every app I had ever downloaded on my iPod appeared on the iPod's screen, and began to
-
Technical data records? What's this???
Hello, we are on BI7.0. I have master data for customer. One customer has as a key 0101010101. When I want to maintain this record it is only possible when the check-box "Display technical data records" is activated. Questions Why? What is this for a