<?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>question related to using join in Expression Rule</title><link>https://community.appian.com/discussions/f/new-to-appian/35535/question-related-to-using-join-in-expression-rule</link><description>Hi All, 
 i have a query related to using join in expression 
 as you can see their is a logic mentioned in below code which is i am using in a database view but now i need to use this logic in expression rule to fetch the data so any one can help me</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: question related to using join in Expression Rule</title><link>https://community.appian.com/thread/138552?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 03:46:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc4b5f66-cf61-4dd8-89dc-c1bb24a88ce8</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;hi &lt;a href="/members/hritiks4748"&gt;hritiks4748&lt;/a&gt;&amp;nbsp; there are two ways, One could be creating a view for that code and next creating a data store entity in Appian and querying the DSE. The approach would be to create a stored procedure in the database for this code, and in Appian call the stored procedure using the function named a!executeStoredProcedureForQuery()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: question related to using join in Expression Rule</title><link>https://community.appian.com/thread/138540?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 16:28:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b714fa7f-7a50-4009-9289-b808d4fafe9c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you&amp;#39;re doing traditional (entity-wise) querying in the expression rule, you merely create a DB view that utilizes the joining logic you want, create a Data Store Entity pointing to that view, then query it in your code.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using RecordType data (synced records etc), you should be able to do basically the same thing inherently in your data structure by configuring Related Record Data.&lt;/p&gt;
&lt;p&gt;As Stefan mentioned, &amp;quot;joins&amp;quot; in expression code aren&amp;#39;t really a thing.&amp;nbsp; The closest you could come is to query from table A and query from table B with filtering on the values you&amp;#39;ve already retrieved from A, which could work depending on what your requirements are, but doesn&amp;#39;t scale well (it gets pretty costly if your volume of queried data starts to become large at all), and doing the necessary coding requires precise and sometimes confusing intricacy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: question related to using join in Expression Rule</title><link>https://community.appian.com/thread/138529?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 13:17:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd6f5a34-51b0-4067-b3ea-8757f88d4b49</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Expressions in Appian do not support DB joins. I suggest to have a look at&amp;nbsp;synced records and related record queries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>