A subquery with no to show any results

Hi all

I'm trying to find out what table of reference no. Complex_Oder do not appear in the Table Unbilled_Recon.

I wrote the following query

SELECT REFERENCE_NUMBER

OF COMPLEX_ORDER

IF REFERENCE_NUMBER NOT IN (SELECT REFERENCE_NO FROM UNBILLED_RECON).

But it shows no data found wherever there are may reference number that do not appear in the table Unbilled_Recon.

I don't know where I am going wrong.

Thanks for your response in advance.

Will there be lines in unbilled_recon where reference_no is null?  If not in any value in the expression is null, the expression will return never all lines.  Try:

Select reference_number

of complex_order

If reference_number not in (select reference_no

of unbilled_recon

WHERE REFERENCE_NO IS NOT NULL)

John

Tags: Database

Similar Questions

Maybe you are looking for

  • Failed to read

    I was able to validate my XML file to http://www.nudge.online/Protest/Podcasts/hungerstriker.xml, but can't seem to deal with it for several reasons: Cannot download episodes of your workflow. Don't submit your feed. There is no category tag in your

  • Cannot install Bluetooth on the Satellite X 200 - 15 k

    Hi, I recently bought a Satellite x 200-15 k and put Windows XP sp3 on this teacher. I managed to install almost all drivers except for Modem and Bluetooth. Also, there was a package Toshiba value added that I could not install due to an error that a

  • HP Mini 120 pswd reset BIOS

    Look for the BIOS to CNU0073PYB password.  Thank you

  • Updated to 4.1.B.0.587 for Xperia Arc (Philippines)

    The NEW update The previous update One thing is much changed: INCREDIBLY FAST ICS EXPERIENCE! (Even with the Bloatwares!) After weeks of work with the new firmware.587, it's that some of what I've noticed lately. 1. When you use an application that i

  • apphangb1 using scangear canon printer canon 6150 mg

    I use win 7 64 bit. mg 6150 printer when I scan scangear object stopped after that scanning and wil do not return to the photoprogramm that I use.My old pc as a win 7 32 bit has no problem with the scanner.