<?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>Query Database Smart Service</title><link>https://community.appian.com/discussions/f/general/9160/query-database-smart-service</link><description>Hi, I need to use a Query Database Smart Service to update many rows in my table. I need to replicate the following query: update [table] set [column1]=1 where [column2] in (&amp;#39;A&amp;#39;,&amp;#39;B&amp;#39;); A and B will be my values in the process variable. I would find a method</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Query Database Smart Service</title><link>https://community.appian.com/thread/42059?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2017 13:18:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b1769dd-0537-4303-8c1e-66ef052923b3</guid><dc:creator>jurim409</dc:creator><description>Hi, I prove to use the solution suggested by @venusaikumarc and it works. &lt;br /&gt;Thanks for all your suggestions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query Database Smart Service</title><link>https://community.appian.com/thread/40953?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2017 12:31:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:40879a9d-ce3d-4f4f-a7b8-f6f8cd64f927</guid><dc:creator>georgej</dc:creator><description>@Jurim409 ,the solution suggested by @venusaikumarc seems to work perfect, you can give it a try&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query Database Smart Service</title><link>https://community.appian.com/thread/40952?ContentTypeID=1</link><pubDate>Tue, 03 Jan 2017 12:10:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7cb0a610-94b3-401c-8e95-5cde99ef0af4</guid><dc:creator>sparshs</dc:creator><description>You can use a appian plugin for this . In that java code you can use simple jdbc code to update the table values.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query Database Smart Service</title><link>https://community.appian.com/thread/40942?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 20:35:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:85833c25-7a19-4f86-8037-470bab253492</guid><dc:creator>Vinay Kumar Rai</dc:creator><description>Hi @Jurim409, You can use query database smart service&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query Database Smart Service</title><link>https://community.appian.com/thread/40936?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 15:03:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36f05129-863d-4d36-9b5c-76121400e615</guid><dc:creator>Venu</dc:creator><description>@Jurim409, I think your A &amp; B values will come form process variables.&lt;br /&gt;You need to convert the array values to single text value using joinarray function.&lt;br /&gt;Joinarray(pv!array,","), map this logic to you ACP (which can be used in sql Query).&lt;br /&gt;&lt;br /&gt;example query: SELECT column1 FROM schema.mytableWHERE INSTR(','||ac!value||',', ','||column1||',')&gt;0&lt;br /&gt;Here ACP (ac!value is single type)&lt;br /&gt;&lt;br /&gt;Have a look at this news event: https://forum.appian.com/suite/tempo/entry/e-180895&lt;br /&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query Database Smart Service</title><link>https://community.appian.com/thread/40935?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 14:49:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6165f450-8b7a-43fb-8b11-ccef6a780c85</guid><dc:creator>Sachin</dc:creator><description>@jurim for your scenario for updating the multiple columns you can use store procedures, &lt;br /&gt;for example&lt;br /&gt;create procedure&lt;br /&gt;[procedure name]&lt;br /&gt;( input1 IN,input2 IN)&lt;br /&gt;&lt;br /&gt;BEGIN,&lt;br /&gt;&lt;br /&gt;UPDATE TABLE1 SET COLUMN1=1 WHERE COLUMN2 IN (input1,input2);&lt;br /&gt;COMMIT;&lt;br /&gt;END;&lt;br /&gt;and execute this by using executestoredprocedure function&lt;br /&gt;hope this is helpfull&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Query Database Smart Service</title><link>https://community.appian.com/thread/40933?ContentTypeID=1</link><pubDate>Mon, 02 Jan 2017 14:30:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fa5a1563-f676-40f9-af04-01cad0ba3ee0</guid><dc:creator>georgej</dc:creator><description>Is it like you want the query to be run with dynamic values for A &amp;amp; B and at the same time don&amp;#39;t want to accomplish this using MNI&amp;#39;s&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>