I have made a new column in my database table:
alter table TABLE add (COLUMN NUMBER(1));
Now I want to select all records where the value of column is not zero, either it’s some other number of empty (null)
SELECT * FROM TABLE WHERE COLUMN != 0;
And by default all columns have empty/null value as this column is recently added so it should return all records but doesn’t return any.
But if a change the value for this column of a record to 0
and run below query it works fine.
SELECT * FROM TABLE WHERE COLUMN = 0;
Please help I want to select all records where the value is not 0
.