<?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>How to write this sql command in appian rules</title><link>https://community.appian.com/discussions/f/new-to-appian/25537/how-to-write-this-sql-command-in-appian-rules</link><description>select * from Table where column1= value1 and column2= value2 and ( column3= value3 or column4 = value4) 
 
 I need to query above sql command into appian query. How can I write? Can anyone help me with this please.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to write this sql command in appian rules</title><link>https://community.appian.com/thread/99616?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 12:31:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ac5573c-5446-451f-b46b-efc78dcd2d2c</guid><dc:creator>maaaaj0001</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write this sql command in appian rules</title><link>https://community.appian.com/thread/99609?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 09:02:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a16eb6ff-b557-48eb-8f63-286e89a18299</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;Use the query editor from the toolbar to apply all these filters visually and then check the rule Appian generates for you to understand how queries are configured using a!queryEntity()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to write this sql command in appian rules</title><link>https://community.appian.com/thread/99608?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 08:53:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6ee747e6-5978-47d8-80a9-ea0f70f0bea4</guid><dc:creator>deepakg681722</dc:creator><description>&lt;p&gt;you have to use nested querylogicalExpression to do this.&lt;pre class="ui-code" data-mode="text"&gt;a!queryEntity(
  entity: cons!UAS_DSE,
  query: a!query(
    pagingInfo: a!pagingInfo(1,-1),
    logicalExpression: a!queryLogicalExpression(
      operator: &amp;quot;AND&amp;quot;,
      filters:{
        a!queryFilter(
          field: &amp;quot;accountid&amp;quot;, /*COLUMN1*/
          operator: &amp;quot;=&amp;quot;,
          value: &amp;quot;VU28682&amp;quot;
        ),

        a!queryFilter(
          field: &amp;quot;accountname&amp;quot;, /*COLUMN2*/
          operator: &amp;quot;=&amp;quot;,
          value:&amp;quot;THE 2012 RECKLING GREAT GRANCHILDREN&amp;#39;S TRUST DTD 12/3/2012 FOR LUKE JORNAYVAZ&amp;quot;
        )
      },
      logicalExpressions: a!queryLogicalExpression(
        operator: &amp;quot;OR&amp;quot;,
        filters: {
          a!queryFilter(
            field: &amp;quot;status&amp;quot;, /*COLUMN3*/
            operator: &amp;quot;=&amp;quot;,
            value:&amp;quot;Categorize New Holding&amp;quot;
          ),

          a!queryFilter(
            field: &amp;quot;processId&amp;quot;, /*COLUMN4*/
            operator: &amp;quot;=&amp;quot;,
            value:536877759
          )
        }
      )
    )
  )
).data&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>