<div dir="ltr">I think col != value is the most common. I'm wary of more convoluted conditions like not(col = value) as when reading code it makes you wonder if the original author thought it did some extra magic.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 5 Nov 2020 at 14:35, Fridolin SOMERS <<a href="mailto:fridolin.somers@biblibre.com">fridolin.somers@biblibre.com</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>
 From :<br>
<a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24379#c1" rel="noreferrer" target="_blank">https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24379#c1</a><br>
<br>
 > This query does not return rows where login_attempts IS NULL. It will <br>
return accounts where login_attempts = 0<br>
<br>
I only recently understood the behavior or NULL values in SQL queries <br>
for NOT IN and !=.<br>
<br>
Should be advice this in coding guide lines ?<br>
Is there a syntax better than another : col!=value / not(col=value) ?<br>
<br>
Best regards 🎃<br>
<br>
-- <br>
Fridolin SOMERS <<a href="mailto:fridolin.somers@biblibre.com" target="_blank">fridolin.somers@biblibre.com</a>><br>
Software and system maintainer 🦄<br>
BibLibre, France<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
</blockquote></div>