SELECT DISTINCT name FROM log WHERE NOT name = '' AND name LIKE '%.EDIT%';
1) Oracle treats "as NULL", which means that the comparison "NOT name =" "is never true or false; use" NOT NULL "instead. But ...
2) The second condition "name LIKE"% .EDIT% 'will still not be equal to an empty string, which makes the first condition redundant.
So rewrite as:
SELECT DISTINCT name FROM log WHERE name LIKE '%.EDIT%';
source
share