Please consider a table named Employee with following two columns:
- EmpId - Number(12)
- EmpType - Varchar2(2 bytes)
EmpType has two valid values either ES or NULL.
When I fire below query I get 100 rows
select * from Employee;
Below query gives me 60 rows:
select * from Employee where EmpType = 'ES'
While select * from Employee where EmpType <> 'ES
' gives me 0 rows.
Why so? I should get 40 rows where EmpType is not ES.
I am working on Oracle Sql DB.