NULL vs NOT NULL columns and Index usage
Recently I was asked to look at a problem where a simple query refused to use an index. The table had several million rows in it with a single index on one column populated with 3 values (in my sample the values are A, B, and C.) CREATE TABLE null_test ( col1 NUMBER, col2 NUMBER,…