I have two tables: PROD and CUST On running the below query in SQL and SYBASE, it works. Oracle is not giving any results.
select * FROM PROD
where PROD.SECID NOT IN (SELECT CUST.SECID FROM CUST WHERE SECID <> '')
NOTE: PROD.SECID has all null values. CUST.SECID has all non null values(valid values).
<>''
doesn't fetch any records from inner subquery so i changed it to IS NOT NULL and now it fetches the results.
But the problem is that when query is run as a whole, it doesn't give any results whereas it should.