<?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>Problem setting SQL sentence &amp;quot;SELECT... IN &amp;quot; in Query database</title><link>https://community.appian.com/discussions/f/data/22102/problem-setting-sql-sentence-select-in-in-query-database</link><description>Hi there, 
 I have problem setting up the SQL sentence &amp;quot;SELECT .... IN &amp;quot; in query database smart service. 
 if I directly writing &amp;quot;SELECT .... IN (&amp;#39;1234&amp;#39;,&amp;#39;5678&amp;#39;)&amp;quot; in the SQL Statement, it will work. 
 if I have create a process variable to be the string</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Problem setting SQL sentence "SELECT... IN " in Query database</title><link>https://community.appian.com/thread/91176?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 14:57:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c1941174-8d38-48a1-a729-a4fd8595d9ce</guid><dc:creator>Jim Schweitzer</dc:creator><description>&lt;p&gt;This is great. Thanks so much for posting this&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f3c6.svg" title="Trophy"&gt;&amp;#x1f3c6;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting SQL sentence "SELECT... IN " in Query database</title><link>https://community.appian.com/thread/86562?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 19:27:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e12868d-fef1-4d31-8373-d9179ccf5d21</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Yes, INSTR() is an Oracle-only function.&amp;nbsp; For MSSQL Server, you will likely be &lt;a href="https://www.sqlines.com/oracle/functions/instr"&gt;switching to CHARINDEX()&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting SQL sentence "SELECT... IN " in Query database</title><link>https://community.appian.com/thread/86560?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 19:22:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:463a81c1-e778-4c3e-aa13-d2b203ab27bf</guid><dc:creator>linp0001</dc:creator><description>&lt;p&gt;Thanks Chris. my database is SQL server, the INSTR is not working.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting SQL sentence "SELECT... IN " in Query database</title><link>https://community.appian.com/thread/86558?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 19:04:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:acb4acfe-f2ba-4389-9840-803504edd59c</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;What type of database are you using?&amp;nbsp; In Oracle, we work around this by utilizing INSTR() such as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="sql"&gt;SELECT ...
WHERE INSTR(ac!list, &amp;#39;,&amp;#39; || table.column || &amp;#39;,&amp;#39;) &amp;gt; 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The ac! value in your Data Inputs tab is then defined as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;=&amp;quot;,&amp;quot; &amp;amp; joinarray(pv!list, &amp;quot;,&amp;quot;) &amp;amp; &amp;quot;,&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where pv!list is the multiple variable that you are looking to search on.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem setting SQL sentence "SELECT... IN " in Query database</title><link>https://community.appian.com/thread/86556?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 18:51:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:762f091b-5bb6-488c-8941-c027a69d9853</guid><dc:creator>Piyush Agarwal</dc:creator><description>&lt;p&gt;can you paste the config in data tab of query rule smart service..is it with multiple values?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>