I expect the following code to show me all the records in the table where the exchange column is null but the result set show 0 rows. Any idea why?
SELECT * FROM pubco WHERE exchange IS NULL;
maybe you have interpreted '' as NULL which is not the same, but try this
SELECT *
FROM pubco
WHERE exchange IS NULL OR
exchange = ''
but if still not getting the value, maybe it has spaces on it, so you should TRIM it,
SELECT *
FROM pubco
WHERE exchange IS NULL OR
TRIM(exchange) = ''
NULL vs. '' thanks for your help. Will accept answer when I can.
''.