<?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>sql inner in appian</title><link>https://community.appian.com/discussions/f/rules/34563/sql-inner-in-appian</link><description>Hi, 
 &amp;quot;I have three lists and I need to obtain the values present in all three lists? How can I do this without having to perform an inner join on the database?&amp;quot; 
 ex. list1: {&amp;quot;IT&amp;quot;,&amp;quot;UK,&amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;} 
 list2: {&amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;} 
 list3: {&amp;quot;IT&amp;quot;,&amp;quot;UK,&amp;quot;DZ&amp;quot;} 
 and</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132773?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 05:07:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7c4de78-3cfc-4ab5-98c7-ecb6cf7d12d0</guid><dc:creator>JayaPrakash Ravipati</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/matteos1776"&gt;cugino95&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;The below code might help you&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!list1: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},
  local!list2: {&amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},
  local!list3: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;},
  local!intersection1:intersection(local!list1,local!list2),
  local!intersection2:intersection(local!intersection1,local!list3),
  local!intersection2
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132737?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2024 12:00:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:697866b6-f5ee-480d-95e5-396399a3f5be</guid><dc:creator>SRINIVAS M</dc:creator><description>&lt;p&gt;&lt;br /&gt;list1: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},&lt;br /&gt;list2: {&amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},&lt;br /&gt;list3: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;commonValues = intersection(list1, list2, list3);&lt;/p&gt;
&lt;p&gt;---&amp;gt; commonValues&amp;#39; will contain {&amp;quot;DZ&amp;quot;} as it is the common element&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132541?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 03:44:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3f24eed-9a9f-48e8-b313-a215cb9eb48e</guid><dc:creator>karimireds772782</dc:creator><description>&lt;p&gt;By writing a query first get that three lists to Appian environment from Database then write this expression,&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!list1: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},&lt;br /&gt; local!list2: {&amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},&lt;br /&gt; local!list3: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;},&lt;/p&gt;
&lt;p&gt;intersection(local!list1,local!list2,local!list3)&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132540?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 03:06:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:867e8428-8fac-48b9-ba06-a75e6ab15428</guid><dc:creator>Karumuru Abhishek</dc:creator><description>&lt;p&gt;hi&amp;nbsp;&lt;a href="/members/matteos1776"&gt;cugino95&lt;/a&gt;&amp;nbsp;instead of doing that in database it will be easy to do it in appian side using&amp;nbsp; &amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.1/fnc_set_intersection.html#:~:text=When%20one%20of%20the%20arrays,returns%20an%20empty%20text%20array."&gt;intersection()&lt;/a&gt;&amp;nbsp;this function will help you click on the link for more details of that function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132528?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 22:05:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4fa3dd39-0893-49d0-b7d0-61c3a978df95</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;DO it in the database, merge the list in SAIL or use records.....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132518?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 17:45:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0b989cc5-86fd-4562-8b6d-af1f3c59805d</guid><dc:creator>Shubham Aware</dc:creator><description>&lt;p&gt;&lt;span&gt;Do you want to do this for VIEW&amp;nbsp;&lt;/span&gt;&lt;span&gt;definition&amp;nbsp;&lt;/span&gt;&lt;span&gt;in database?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132517?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 17:08:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fb99ba96-fb13-4cdb-a5c6-6bb914be1cff</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/24.1/fnc_set_intersection.html"&gt;docs.appian.com/.../fnc_set_intersection.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132511?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 16:26:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aebc4192-7022-48a9-b07f-1f4b1767f046</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Do you need/want to solve this in the database?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sql inner in appian</title><link>https://community.appian.com/thread/132508?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2024 15:36:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6bb823e8-5bc9-4b9c-a361-c9828b97ac48</guid><dc:creator>manishs0028</dc:creator><description>&lt;p&gt;This code may help you&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;a!localVariables(&lt;br /&gt; local!list1: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},&lt;br /&gt; local!list2: {&amp;quot;DZ&amp;quot;, &amp;quot;USA&amp;quot;},&lt;br /&gt; local!list3: {&amp;quot;IT&amp;quot;, &amp;quot;UK&amp;quot;, &amp;quot;DZ&amp;quot;},&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;br /&gt; items: local!list1,&lt;br /&gt; expression: if(&lt;br /&gt; and(contains(local!list2, fv!item), contains(local!list3, fv!item)),&lt;br /&gt; fv!item,&lt;br /&gt; {}&lt;br /&gt; )&lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>