<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JSON SQL WITH WHERE CLAUSE in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/JSON-SQL-WITH-WHERE-CLAUSE/m-p/1767013#M454331</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am facing a problem with sql json from Rest API. I can not find how i filter the data that i get from API.&lt;/P&gt;&lt;P&gt;I have the following script&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;"count",&lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT&lt;BR /&gt;"id",&lt;BR /&gt;"label" AS "label_u0",&lt;BR /&gt;"timeslotSizeInMin",&lt;BR /&gt;"timezoneCode",&lt;BR /&gt;"standalone",&lt;BR /&gt;"schedulingMode",&lt;BR /&gt;"distanceUnit",&lt;BR /&gt;"createdAt",&lt;BR /&gt;"modifiedAt",&lt;BR /&gt;"__KEY_division",&lt;BR /&gt;"__FK_division",&lt;BR /&gt;(SELECT&lt;BR /&gt;"label",&lt;BR /&gt;"lat",&lt;BR /&gt;"long",&lt;BR /&gt;"__FK_address"&lt;BR /&gt;FROM "address" FK "__FK_address"),&lt;BR /&gt;(SELECT&lt;BR /&gt;"from",&lt;BR /&gt;"till",&lt;BR /&gt;"__FK_timeslots"&lt;BR /&gt;FROM "timeslots" FK "__FK_timeslots")&lt;BR /&gt;FROM "division" PK "__KEY_division" FK "__FK_division"),&lt;BR /&gt;(SELECT&lt;BR /&gt;"serverTrackingId",&lt;BR /&gt;"__FK_trackingData"&lt;BR /&gt;FROM "trackingData" FK "__FK_trackingData")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;&lt;P&gt;how can i have where clause condition in order to get data from date to date in the field&amp;nbsp;"createdAt"&lt;/P&gt;&lt;P&gt;I mentioned that the field&amp;nbsp;"createdAt" is a timestamp&lt;/P&gt;&lt;P&gt;Can anyone have a solution for this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advanced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2020 13:44:31 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2020-12-08T13:44:31Z</dc:date>
    <item>
      <title>JSON SQL WITH WHERE CLAUSE</title>
      <link>https://community.qlik.com/t5/QlikView/JSON-SQL-WITH-WHERE-CLAUSE/m-p/1767013#M454331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am facing a problem with sql json from Rest API. I can not find how i filter the data that i get from API.&lt;/P&gt;&lt;P&gt;I have the following script&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;"count",&lt;BR /&gt;"__KEY_root",&lt;BR /&gt;(SELECT&lt;BR /&gt;"id",&lt;BR /&gt;"label" AS "label_u0",&lt;BR /&gt;"timeslotSizeInMin",&lt;BR /&gt;"timezoneCode",&lt;BR /&gt;"standalone",&lt;BR /&gt;"schedulingMode",&lt;BR /&gt;"distanceUnit",&lt;BR /&gt;"createdAt",&lt;BR /&gt;"modifiedAt",&lt;BR /&gt;"__KEY_division",&lt;BR /&gt;"__FK_division",&lt;BR /&gt;(SELECT&lt;BR /&gt;"label",&lt;BR /&gt;"lat",&lt;BR /&gt;"long",&lt;BR /&gt;"__FK_address"&lt;BR /&gt;FROM "address" FK "__FK_address"),&lt;BR /&gt;(SELECT&lt;BR /&gt;"from",&lt;BR /&gt;"till",&lt;BR /&gt;"__FK_timeslots"&lt;BR /&gt;FROM "timeslots" FK "__FK_timeslots")&lt;BR /&gt;FROM "division" PK "__KEY_division" FK "__FK_division"),&lt;BR /&gt;(SELECT&lt;BR /&gt;"serverTrackingId",&lt;BR /&gt;"__FK_trackingData"&lt;BR /&gt;FROM "trackingData" FK "__FK_trackingData")&lt;BR /&gt;FROM JSON (wrap on) "root" PK "__KEY_root";&lt;/P&gt;&lt;P&gt;how can i have where clause condition in order to get data from date to date in the field&amp;nbsp;"createdAt"&lt;/P&gt;&lt;P&gt;I mentioned that the field&amp;nbsp;"createdAt" is a timestamp&lt;/P&gt;&lt;P&gt;Can anyone have a solution for this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advanced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 13:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JSON-SQL-WITH-WHERE-CLAUSE/m-p/1767013#M454331</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2020-12-08T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSON SQL WITH WHERE CLAUSE</title>
      <link>https://community.qlik.com/t5/QlikView/JSON-SQL-WITH-WHERE-CLAUSE/m-p/1767628#M454388</link>
      <description>&lt;P&gt;Hi Geogou1973,&lt;/P&gt;&lt;P&gt;Have you solved this question by yourself ?&lt;/P&gt;&lt;P&gt;In a glance, it seems that you could put a WHERE clause following the 'FROM "division"'... or use Nested Load to filter the final result.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 12:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JSON-SQL-WITH-WHERE-CLAUSE/m-p/1767628#M454388</guid>
      <dc:creator>Marcos_Ferreira_dos_Santos</dc:creator>
      <dc:date>2020-12-10T12:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSON SQL WITH WHERE CLAUSE</title>
      <link>https://community.qlik.com/t5/QlikView/JSON-SQL-WITH-WHERE-CLAUSE/m-p/1936583#M1219181</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36023"&gt;@geogou1973&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Were you able to use where condition on SQL statement itself?&lt;/P&gt;
&lt;P&gt;Could you please provide the solution if you have,&lt;/P&gt;
&lt;P&gt;I have same requirement.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 13:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/JSON-SQL-WITH-WHERE-CLAUSE/m-p/1936583#M1219181</guid>
      <dc:creator>Akash_Pohare</dc:creator>
      <dc:date>2022-05-27T13:54:10Z</dc:date>
    </item>
  </channel>
</rss>

