<?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>How are null DB values handled when accessed via a query rule?</title><link>https://community.appian.com/discussions/f/rules/705/how-are-null-db-values-handled-when-accessed-via-a-query-rule</link><description>Hello Everyone. How are null DB values handled when accessed via a query rule? When I use a query rule to retrieve a CDT the isnull() expression returns false on the single object even though the underlying table has null stored as the value. The field</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How are null DB values handled when accessed via a query rule?</title><link>https://community.appian.com/thread/34707?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2016 22:38:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df753a89-aa59-4e84-aa1f-4fdfba41b70a</guid><dc:creator>anilkumark</dc:creator><description>How to implement NVL() in Appian? Can any one help me how to implement below query using queryEntity().&lt;br /&gt;&lt;br /&gt;select * from REQUEST&lt;br /&gt;where XYZ is null&lt;br /&gt;and PQR is null&lt;br /&gt;and NVL(NEW_CD, OLD_CD) IN (1,2,3);&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How are null DB values handled when accessed via a query rule?</title><link>https://community.appian.com/thread/2344?ContentTypeID=1</link><pubDate>Thu, 02 May 2013 01:43:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba62042c-e94e-4880-86ed-546b88c9205d</guid><dc:creator>Tim</dc:creator><description>I have seen java return a value of 0 when checking isnull against primitive int types so its quite possible this could be happening here. Maybe someone from Appian can confirm. &lt;br /&gt;&lt;br /&gt;Null&amp;#39;s can be tricky in RDBMS unless you&amp;#39;re querying it natively. On our Oracle instances here I always use the NVL(column1, 999) type syntax rather than trusting or relying on a jdbc driver connection to do what I&amp;#39;d expect!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How are null DB values handled when accessed via a query rule?</title><link>https://community.appian.com/thread/2343?ContentTypeID=1</link><pubDate>Thu, 02 May 2013 01:22:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d3efc29-4bfd-4179-87f0-2c26ac693ef5</guid><dc:creator>Jin Pheh</dc:creator><description>Sorry I should have been more clear.  I&amp;#39;m running isnull() against a field on the CDT.  The corresponding field in the DB is null though the other fields are present (primary key, etc)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How are null DB values handled when accessed via a query rule?</title><link>https://community.appian.com/thread/2342?ContentTypeID=1</link><pubDate>Thu, 02 May 2013 01:19:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f5e69c8-a923-4689-99a5-a09cc9078b46</guid><dc:creator>Tim</dc:creator><description>You&amp;#39;re either answering your own question or maybe I&amp;#39;m mis-reading it....&lt;br /&gt;&lt;br /&gt;If you RDBMS table has a row the result of isnull will be false even if the value is null in the row.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>