<?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>Fetching data from DB using query Entity by comparing different columns of same table</title><link>https://community.appian.com/discussions/f/data/28327/fetching-data-from-db-using-query-entity-by-comparing-different-columns-of-same-table</link><description>Hi All, 
 Here is my query. 
 I have DB TABLE with column A, column B, column C. 
 Please help me to convert below SQL query in to Appian Query Entity. 
 Select * from TABLE where column A = column B; 
 
 DSE Constant : cons!TEST_DSE_TABLE 
 CDT fields</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fetching data from DB using query Entity by comparing different columns of same table</title><link>https://community.appian.com/thread/110829?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 09:23:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d10151b-21fa-4e30-b480-17533b8b16a9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;But you cannot compare two fields in DB to&amp;nbsp;each other. This is what the TO was asking for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching data from DB using query Entity by comparing different columns of same table</title><link>https://community.appian.com/thread/110828?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 09:06:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f123752-0a4a-4834-ba73-15479fcbb09b</guid><dc:creator>Mallepu Prashanth </dc:creator><description>&lt;p&gt;In the query entity function, you can use logical expressions and filters in query parameter. Please do refer this link:&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/23.1/fnc_system_a_queryentity.html"&gt;a!queryEntity() Function - Appian 23.1&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching data from DB using query Entity by comparing different columns of same table</title><link>https://community.appian.com/thread/110757?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2023 07:27:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:143a90cf-cb58-489d-94b7-db477a1f4a69</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Appian does not directly support this kind of queries. Either create a view in DB or use synchronized records and a custom record field that stores the result of this comparison.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>