<?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>Advanced Query Plugin SQL</title><link>https://community.appian.com/discussions/f/plug-ins/8341/advanced-query-plugin-sql</link><description>Hello, We are used to do complex query using the query database node, an example should be something like that: select * from HSE_BBS_VIEW_REPORT WHERE (DATE between {d &amp;#39;2015-05-24&amp;#39;} and {d &amp;#39;2016-01-01&amp;#39;}) and (OBSERVER_NAME=&amp;#39;Winfield Paul&amp;#39; or OBSERVER_NAME</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Advanced Query Plugin SQL</title><link>https://community.appian.com/thread/36583?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 18:59:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6dd641be-6313-4dc0-8403-6dd2df6c02a6</guid><dc:creator>phanibabuk</dc:creator><description>Hi,&lt;br /&gt;I hope this URL might be of help.&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/16.2/Query_Recipes.html"&gt;forum.appian.com/.../Query_Recipes.html&lt;/a&gt;&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advanced Query Plugin SQL</title><link>https://community.appian.com/thread/36562?ContentTypeID=1</link><pubDate>Mon, 05 Sep 2016 17:45:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6e843205-914f-4b84-bdc1-b13334e9c4c5</guid><dc:creator>marcoc918</dc:creator><description>Yes with query entity it works fine, not so easy to implement but once you have understood the logic it works.&lt;br /&gt;&lt;br /&gt;Thank you very much to all&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advanced Query Plugin SQL</title><link>https://community.appian.com/thread/36512?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 16:27:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:022f4bbb-e506-465a-b41e-c26937871a8d</guid><dc:creator>PhilB</dc:creator><description>As above, you&amp;#39;ll need to use a query entity with a logical expression to achieve what you&amp;#39;re hoping to do.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advanced Query Plugin SQL</title><link>https://community.appian.com/thread/36509?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 14:45:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc0b7d62-dce0-41ab-9f66-13fcea9f2cb1</guid><dc:creator>sparshs</dc:creator><description>i think you can use query entity instead of query rule for that.. It will suffice your requirement. Let me know if there are any further concerns.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advanced Query Plugin SQL</title><link>https://community.appian.com/thread/36506?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 14:21:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d166aca1-c396-402e-80b7-e9a0f80d67b8</guid><dc:creator>sikhivahans</dc:creator><description>@marco Have a look at the documentation at &lt;a href="https://forum.appian.com/suite/help/16.2/Query_Recipes.html#Querying_on_Nested_Conditions"&gt;forum.appian.com/.../Query_Recipes.html&lt;/a&gt; and I believe that should answer your question.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advanced Query Plugin SQL</title><link>https://community.appian.com/thread/36505?ContentTypeID=1</link><pubDate>Fri, 02 Sep 2016 14:15:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1c9d1ab5-2c44-4a0e-9454-abfc47d743d6</guid><dc:creator>kdimitrov</dc:creator><description>Hi Marco,&lt;br /&gt;&lt;br /&gt;Using a query rule with an OR would not be possible.&lt;br /&gt;&lt;br /&gt;The function a!queryEntity will allow you to do BETWEEN and OR as normal using a combination a!queryLogicalExpression() functions.&lt;br /&gt;&lt;br /&gt;Hope that helps.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>