<div dir="ltr"><div dir="ltr">Bernd and list,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 15, 2020 at 5:18 AM Bernd Vogelgesang <<a href="mailto:bernd.vogelgesang@gmx.de">bernd.vogelgesang@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
just hit a problem when working with a table from an .ods file.<br>
<br>
To work with the data, I have to exclude some values from a field, where<br>
some entries also have NULL values.<br>
<br>
When I now filter on the value I do not need ("field" != 'xyz'), also<br>
the rows with  NULL values in that field are filtered out, which is not<br>
what I want.<br></blockquote><div><br></div><div>In databases that support NULL values it's customary to use "IS NULL"  rather than "= NULL".   The rationale is that a boolean expression involving NULL values can't be true nor false since the meaning of NULL is "unknown".</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
As I do not want to "invent" data for those rows just to make it work, I<br>
wonder if this is a bug or if there is a workaround for this problem.<br></blockquote><div><br></div><div>I just tried this with the QGIS select calculator (IS NULL) and it seems to work fine there.</div><div><br></div><div><br></div></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div>