<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>I created a query rule in which I am going up against a database and checking to</title><link>https://community.appian.com/discussions/f/rules/2692/i-created-a-query-rule-in-which-i-am-going-up-against-a-database-and-checking-to</link><description>I created a query rule in which I am going up against a database and checking to see if a value is null. The column in question is called COP_NUM. In the attached screenshot, the column is populated with &amp;quot;NULL&amp;quot;. When I use the following SQL statement</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I created a query rule in which I am going up against a database and checking to</title><link>https://community.appian.com/thread/9361?ContentTypeID=1</link><pubDate>Thu, 15 May 2014 22:05:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7639e8b6-273c-451c-b577-98904b05dfe2</guid><dc:creator>tonyc</dc:creator><description>I actually need to get back the rows where COP_NUM is null&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a query rule in which I am going up against a database and checking to</title><link>https://community.appian.com/thread/9360?ContentTypeID=1</link><pubDate>Thu, 15 May 2014 20:47:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40b3f4d1-642e-4163-bcb3-c6ca005c3aca</guid><dc:creator>Bishnu Panigrahi</dc:creator><description>Unless you are using the &amp;quot;includes&amp;quot; operator, you can&amp;#39;t pass a null value into a query rule. Here are a few alternatives:&lt;br /&gt;&lt;br /&gt;1. Use a query database node: ex. select &amp;lt;fieldA&amp;gt; from &amp;lt;table&amp;gt; where &amp;lt;fieldB&amp;gt; is not NULL&lt;br /&gt;2. Create a view that filters the rows based on these null values. Then query that table.&lt;br /&gt;3. Use a query rule to call back a bigger datasubset, then filter nulls in process.&lt;br /&gt;&lt;br /&gt;There are positives and downsides to each scenario, so think about each one before implementing.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>