COUNT(expresion) returns the count of of rows where expresion is not null. So SELECT COUNT (COL_NAME) FROM TABLE WHERE COL_NAME IS NULL will return 0, because you are only counting col_name where col_name is null, and a count of nothing but nulls is zero. COUNT(*) will return the number of rows of the query:

SELECT COUNT (*) FROM TABLE WHERE COL_NAME IS NULL

The other two queries are probably not returning any rows, since they are trying to match against strings with one blank character, and your dump query indicates that the column is actually holding nulls.

If you have rows with variable strings of space characters that you want included in the count, use:

SELECT COUNT (*) FROM TABLE WHERE trim(COL_NAME) IS NULL

trim(COL_NAME) will remove beginning and ending spaces. If the string is nothing but spaces, then the string becomes '' (empty string), which is equivalent to null in Oracle.

Answer from Shannon Severance on Stack Overflow
๐ŸŒ
Oracle
docs.oracle.com โ€บ en โ€บ database โ€บ oracle โ€บ oracle-database โ€บ 26 โ€บ sqlrf โ€บ Nulls.html
Nulls
1 week ago - Note: The database currently treats ... the same as nulls. Any arithmetic expression containing a null always evaluates to null. For example, null added to 10 is null....
๐ŸŒ
Oracle-Base
oracle-base.com โ€บ articles โ€บ misc โ€บ null-related-functions
NULL-Related Functions - ORACLE-BASE
SQL> SELECT id, col3 FROM null_test_tab WHERE LNNVL(col2 != 'TWO') ORDER BY id; ID COL3 ---------- ---------- 1 THREE 2 THREE 3 THREE 4 THREE 4 rows selected. SQL> The NANVL function was introduced in Oracle 10g for use with the BINARY_FLOAT and BINARY_DOUBLE datatypes, which can contain a special "Not a Number" or "NaN" value.
๐ŸŒ
Medium
medium.com โ€บ @DigitalFootprints โ€บ how-to-handle-null-values-in-oracle-database-a4110bf8243a
How to handle NULL values in Oracle database | by BK | Medium
September 20, 2023 - SELECT EMP_ID, NULLIF(PERSONAL_NO, HOME_NO) AS CONTACT_NO FROM EMPLOYEES; ... DECODE function works like if-then-else statements. It can have multiple arguments (max 255). DECODE function compares the expression (the first argument) to the search ...
๐ŸŒ
Oracle
docs.oracle.com โ€บ en โ€บ database โ€บ other-databases โ€บ nosql-database โ€บ 26.1 โ€บ sqlreferencefornosql โ€บ is-null-and-is-not-null-operators.html
IS NULL and IS NOT NULL Operators
2 weeks ago - See BaggageInfo table in the Tables used in the Examples topic. SELECT ticketNo,fullname FROM BaggageInfo bag WHERE EXISTS bag.bagInfo.tagNum [$element IS NOT NULL] Explanation: In the airline baggage tracking application, there is a unique tag number associated with every checked bag carried by the passenger. In this query, you fetch the details of passengers who have a tag number, which means the tagNum field in the bagInfo table is not null.
๐ŸŒ
Oracle
docs.oracle.com โ€บ en โ€บ database โ€บ other-databases โ€บ timesten โ€บ 22.1 โ€บ sql-reference โ€บ null-values.html
Null Values
July 25, 2025 - You can use the NULL value itself directly as an operand of an operator or predicate. For example, the (1 = NULL) comparison is supported. This is the same as if you cast NULL to the appropriate data type, as follows: (1 = CAST(NULL AS INT)).
๐ŸŒ
Oracle FAQ
orafaq.com โ€บ wiki โ€บ NULL
NULL - Oracle FAQ
For example, 10 + NULL = NULL. In fact, all operators (except concatenation and the DECODE function) return null when given a null operand. Nothing is ever equal to a NULL not even NULL ("anything = NULL" evaluates as UNKNOWN): ... An empty string literal is evaluated in the same way as NULL ...
๐ŸŒ
Oracle Tutorial
oracletutorial.com โ€บ home โ€บ oracle basics โ€บ oracle is null operator
Oracle IS NULL Operator
April 27, 2025 - To check if a value is NULL or not, you the IS NULL operator: ... The IS NULL returns true if the value is NULL or false otherwise.
Find elsewhere
๐ŸŒ
TechOnTheNet
techonthenet.com โ€บ oracle โ€บ functions โ€บ nvl.php
Oracle / PLSQL: NVL Function
The SQL statement above would return 'n/a' if the supplier_city field contained a null value. Otherwise, it would return the supplier_city value. Another example using the NVL function in Oracle/PLSQL is:
๐ŸŒ
DZone
dzone.com โ€บ data engineering โ€บ databases โ€บ null in oracle
NULL in Oracle - DZone
August 17, 2023 - You cannot compare any value with it using any operators: =, <, >, like ... Even the expression NULL != NULL will not be true because one cannot uniquely compare one unknown with another. By the way, this expression will not be false either because when calculating the conditions, Oracle is not ...
๐ŸŒ
TechOnTheNet
techonthenet.com โ€บ oracle โ€บ isnull.php
Oracle / PLSQL: IS NULL Condition
This Oracle IS NULL example will return all records from the suppliers table where the supplier_name contains a null value.
๐ŸŒ
Red Gate Software
red-gate.com โ€บ home โ€บ checking for null with oracle sql
Checking for NULL with Oracle SQL | Simple Talk
July 14, 2021 - The last example results in an error because โ€˜Bโ€™ cannot be converted to a number. In the one before it, it was possible to convert 2 to a varchar2 value. ... If expr1 contains a NULL value, then return expr3.
๐ŸŒ
Tutorials
onlinetutorialhub.com โ€บ home โ€บ oracle sql โ€บ how to handle null in oracle sql? & what is null handling?
How to Handle NULL in Oracle SQL? & What is NULL Handling?
September 8, 2025 - Using these operators to compare any value to NULL or to compare two NULLs will yield UNKNOWN. Only when two NULLs appear in compound keys or are evaluated by a DECODE function does Oracle treat them as equal. You must use the IS NULL or IS NOT NULL operators to check for the existence or absence of NULLs. Example: To find rows where Precipitation is unknown (NULL):
๐ŸŒ
Oracle
docs.oracle.com โ€บ cloud โ€บ latest โ€บ big-data-discovery-cloud โ€บ BDDEQ โ€บ ceql_literals_null.htm
Handling NULL attribute values
If an attribute value is missing for a record, then the attribute is referred to as being NULL. For example, if a record does not contain an assignment for a Price attribute, EQL defines the Price value as NULL.
๐ŸŒ
O'Reilly
oreilly.com โ€บ library โ€บ view โ€บ oracle-sql-plus-the โ€บ 0596007469 โ€บ ch04s03.html
4.3. The Concept of Null - Oracle SQL*Plus: The Definitive Guide, 2nd Edition [Book]
November 16, 2004 - What about the termination date? There's no default for that column, so what's the value? The answer is there is no value. Because no value is supplied, employee_termination_date is said to be null. Example 4-20 uses the SET NULL command to make the null termination date obvious.
Author: Jonathan Gennick
Published: 2004
Pages: 584
๐ŸŒ
Psoug
psoug.org โ€บ definition โ€บ NULL.htm
The Oracle NULL Value
NULL values represent missing or unknown data. NULL values are used as placeholders or as the default entry in columns to indicate that no actual data
๐ŸŒ
Stanford InfoLab
infolab.stanford.edu โ€บ ~ullman โ€บ fcdb โ€บ oracle โ€บ or-nulls.html
The Behavior of NULL's in SQL
Intuitively, NULL approximately represents an unknown value. An arithmetic operation involving a NULL returns NULL. For example, NULL minus NULL yields NULL, not zero.
๐ŸŒ
Oracle
docs.oracle.com โ€บ en-us โ€บ iaas โ€บ data-safe โ€บ doc โ€บ null-value.html
Null Value
Suppose you have a column named SALARY that contains salary information and you want to replace those numbers with NULL. You can apply the Null Value masking format to the SALARY column.
๐ŸŒ
Upscale Analytics
ramkedem.com โ€บ home โ€บ oracle is null operator
Oracle IS NULL Operator - Upscale Analytics
May 20, 2019 - The value NULL does not equal zero (0), nor does it equal a space (โ€˜ โ€˜). Because the NULL value cannot be equal or unequal to any value, you cannot perform any comparison on NULL values by using operators such as โ€˜=โ€™ or โ€˜<>โ€™. The following Oracle queries will produce no results:
๐ŸŒ
W3Schools
w3schools.com โ€บ sql โ€บ sql_isnull.asp
SQL COALESCE(), IFNULL(), ISNULL(), NVL() Functions
SQL Examples SQL Editor SQL Quiz SQL Exercises SQL Server SQL Syllabus SQL Study Plan SQL Training ... Operations involving NULL values can sometimes lead to unexpected results. SQL has some built-in functions to handle NULL values, and the most common functions are: COALESCE() - The preferred standard. (Works in MySQL, SQL Server and Oracle...