<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>30 Jan 2016 01:35:00 Z</lastBuildDate><pubDate>28 Jan 2016 17:13:00 Z</pubDate><description>Hi,&#13;
I have in my hand a SELECT query created by the editor. Is there a way to add another "boolean-like" condition in which the result includes (or not) the records that have that certain field as NULL?&#13;
&#13;
i.e.&#13;
I have a table "students" with these records:&#13;
&#13;
id |name |grade&#13;
&#13;
1 |Alex |C&#13;
2 |John |NULL&#13;
&#13;
and a simple query like this:&#13;
SELECT id,grade FROM students&#13;
&#13;
What I need is a way to have a SELECT query that, given the "boolean-like" condition passed as a parameter (let's say, in the HExecuteQuery() function), it will include the record "2|John|NULL" (or won't include, if the condition "IS NULL" is set to FALSE).&#13;
&#13;
Ps. it is very important for me to do this in a single query, as this is one of the requirements that must be respected&#13;
&#13;
Thanks,&#13;
Dann</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric/read.awp</link><title>Query with condition &amp;quot;IS NULL&amp;quot; parametric</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56160/read.awp</comments><pubDate>30 Jan 2016 01:35:00 Z</pubDate><description>Simply use COALESCE(grade,0) and then look for 0 (or whatever value you decide to use in the COALESCE statement)</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56160/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56160/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric/read.awp">Query with condition &amp;quot;IS NULL&amp;quot; parametric</source><title>Re: Query with condition &amp;quot;IS NULL&amp;quot; parametric</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-with-native-56158/read.awp</comments><pubDate>29 Jan 2016 19:20:00 Z</pubDate><description>I think he wants to turn off an IS NULL condition. If it is a = {param} condition you can set param to NULL for turning off the …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-with-native-56158/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-with-native-56158/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric/read.awp">Query with condition &amp;quot;IS NULL&amp;quot; parametric</source><title>Re: Query with condition &amp;quot;IS NULL&amp;quot; parametric with Native Access MySQL</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56148/read.awp</comments><pubDate>29 Jan 2016 17:13:00 Z</pubDate><description>Quote&#13;
Stefan Bentvelsen&#13;
&#13;
Hi Dann,&#13;
&#13;
&#13;
&#13;
&#13;
&#13;
may be, you can add a statement CASE WHEN grade is null THEN 0 ELSE 1 END AS Gra…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56148/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56148/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric/read.awp">Query with condition &amp;quot;IS NULL&amp;quot; parametric</source><title>Re: Query with condition &amp;quot;IS NULL&amp;quot; parametric</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-with-native-56108/read.awp</comments><pubDate>28 Jan 2016 21:16:00 Z</pubDate><description>Hi Dann,&#13;
&#13;
in such cases I do not use the query editor, but hexecutesqlqeuery-&#13;
&#13;
So I can build my SQL string by code.&#13;
&#13;
Best…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-with-native-56108/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-with-native-56108/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric/read.awp">Query with condition &amp;quot;IS NULL&amp;quot; parametric</source><title>Re: Query with condition &amp;quot;IS NULL&amp;quot; parametric with Native Access MySQL</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56107/read.awp</comments><pubDate>28 Jan 2016 17:35:00 Z</pubDate><description>Hi Dann,&#13;
&#13;
may be, you can add a statement CASE WHEN grade is null THEN 0 ELSE 1 END AS GradeEvaluated&#13;
and add a WHERE GradeEv…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56107/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric-56107/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/56106-query-with-condition-quotis-nullquot-parametric/read.awp">Query with condition &amp;quot;IS NULL&amp;quot; parametric</source><title>Re: Query with condition &amp;quot;IS NULL&amp;quot; parametric</title></item></channel></rss>
