I'm quite confused about Nulls.
Or maybe I'm not. Maybe I'm confused about something else but have chosen to believe it has something to do with Nulls. It's driving me mad!!
Anyway here goes.
I have a table.
It has a field called notes. A lot of rows have "historical data" in this field.
The rest have something. They are either blanks, spaces, unprintable characters or NULLS!!!!!
I have 2 queries based on this table.
They are identical except query 1 has as it's criteria against the notes field = "historical data". The 2nd query has <> "historical data".
Query 1 returns all the rows with "historical data" in the notes field.
Query 2 returns nothing.
Why?
I'm sure I've read somewhere I can get around this using NZ - how I'm not sure at the moment but I'll either work it out or someone will tell me.
But does this mean that every field effectively has to be tested for NULLS?
Also is there a simple way to see what fields have got NULL in (can I see the data in EBCIDIC HEX or whatever else is out there these days?).
Or maybe I'm not. Maybe I'm confused about something else but have chosen to believe it has something to do with Nulls. It's driving me mad!!
Anyway here goes.
I have a table.
It has a field called notes. A lot of rows have "historical data" in this field.
The rest have something. They are either blanks, spaces, unprintable characters or NULLS!!!!!
I have 2 queries based on this table.
They are identical except query 1 has as it's criteria against the notes field = "historical data". The 2nd query has <> "historical data".
Query 1 returns all the rows with "historical data" in the notes field.
Query 2 returns nothing.
Why?
I'm sure I've read somewhere I can get around this using NZ - how I'm not sure at the moment but I'll either work it out or someone will tell me.
But does this mean that every field effectively has to be tested for NULLS?
Also is there a simple way to see what fields have got NULL in (can I see the data in EBCIDIC HEX or whatever else is out there these days?).