<?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>Fetching data from DB on date range.</title><link>https://community.appian.com/discussions/f/data/13890/fetching-data-from-db-on-date-range</link><description>Hello Everyone, 
 I am trying to achieve something like below in Appian. 
 select * from EMPLOYEE where &amp;#39;15-Nov-2018&amp;#39; BETWEEN START_DATE and END_DATE. 
 Note i need to fetch rows whose date range (From Start_Date and End_Date) falls within input date</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fetching data from DB on date range.</title><link>https://community.appian.com/thread/63026?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 07:04:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:682e06d1-0e84-4fad-8a52-1516942466f5</guid><dc:creator>rickyc472</dc:creator><description>Thank  you, :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching data from DB on date range.</title><link>https://community.appian.com/thread/63024?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 06:50:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0718567b-35f2-4bca-8ace-2f752462a9c1</guid><dc:creator>ekanshj</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Hope this helps and is what you require&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!queryEntity(
      entity: /* Employee Data Store Entity */,
      query: a!query(
        logicalExpression: a!queryLogicalExpression(
          operator: &amp;quot;AND&amp;quot;,
          filters:{
            a!queryFilter(
          field: &amp;quot;START_DATE&amp;quot;,
          operator: &amp;quot;&amp;lt;&amp;quot;,
          value: /* 15-Nov-2018 */
        ),
        a!queryFilter(
          field: &amp;quot;END_DATE&amp;quot;,
          operator: &amp;quot;&amp;gt;&amp;quot;,
          value: /* 15-Nov-2018 */
        )
          }
        ),
        pagingInfo: a!pagingInfo(
          1,
          - 1
        )
      )
    )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>