<?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 Re: How to execute the query against the In Memory Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383433#M143092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 12:39:23 GMT</pubDate>
    <dc:creator>whiteline</dc:creator>
    <dc:date>2012-09-03T12:39:23Z</dc:date>
    <item>
      <title>How to execute the query against the In Memory Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383432#M143091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one QVW (order.qvw) in which I have loaded following 3 sample tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order mst&lt;/P&gt;&lt;P&gt;order_id &amp;amp; Order_dt&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;8/1/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;8/16/2012&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order Detail&lt;/P&gt;&lt;P&gt;Oorder_id Prod_NM, Quantity, Unit_Price&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Stationery&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;50&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;16&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Pencils&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;15&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;School Bag&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;25&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;150&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Water Bag&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;25&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;70&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL_QUERY&lt;/P&gt;&lt;P&gt;Order_id, SQL_QUERY&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="background: white;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: #eeece1 1pt inset; padding: 0.75pt;" valign="top"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;SELECT order_dtl.order_id,Sum(Order_Dtl.Unit_Price * Order_Dtl.Quantity) as `Result` &lt;BR /&gt;FROM order_dtl, order_mst &lt;BR /&gt;where order_mst.order_id = Order_Dtl.order_id &lt;BR /&gt;group by Order_Dtl.order_id&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another QVW (ORDER_1.qvw) which I have inherited from above i.e. (order.qvw).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to execute the Query (&lt;SPAN style="color: black;"&gt;SELECT order_dtl.order_id,Sum(Order_Dtl.Unit_Price * Order_Dtl.Quantity)……….&lt;/SPAN&gt;) of table ‘order_query’ and store the result in ORDER_1.qvw.&lt;/P&gt;&lt;P&gt;Please note I do NOT want to execute this query in DB instead I want to execute against the In Memory Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do let me know how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 12:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383432#M143091</guid>
      <dc:creator />
      <dc:date>2012-09-03T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the query against the In Memory Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383433#M143092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Resident ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 12:39:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383433#M143092</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-03T12:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the query against the In Memory Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383434#M143093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use the same QUERY in different qvw's, you should store the result of the query in QVD files, so you will read the QVD files in multiple qvw's if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, after doing the SELECT, you must store in QVD like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;ELECT order_dtl.order_id,Sum(Order_Dtl.Unit_Price * Order_Dtl.Quantity) as `Result` &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;FROM order_dtl, order_mst &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;where order_mst.order_id = Order_Dtl.order_id &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;group by Order_Dtl.order_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;Store * from TABLE into TABLE.QVD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;So, this table is in a QVD file and you can read using the File... button in your script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;If you want to read data of one table in the same qvw you must use a resident table, like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;ELECT order_dtl.order_id,Sum(Order_Dtl.Unit_Price * Order_Dtl.Quantity) as `Result` &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;FROM order_dtl, order_mst &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;where order_mst.order_id = Order_Dtl.order_id &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Arial; font-size: 11.818181991577148px; background-color: #ffffff;"&gt;group by Order_Dtl.order_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident TABLE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 17:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383434#M143093</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-09-03T17:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the query against the In Memory Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383435#M143094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jose! &lt;/P&gt;&lt;P&gt;In both the cases SELECT query is going to hit the underlying DB. I want to execute Select query in second QVW where i do not have any ODBC connection. Also I want to loop thru the Order query to fetch the Select query and execute it against the In-Memory data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 04:38:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383435#M143094</guid>
      <dc:creator />
      <dc:date>2012-09-04T04:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the query against the In Memory Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383436#M143095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In case you want to load all the data from one qvw to another you can use Binary statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 05:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383436#M143095</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the query against the In Memory Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383437#M143096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing so. As I mentioned in my 1st post - &lt;/P&gt;&lt;P&gt;I have another QVW (ORDER_1.qvw) which I have inherited from above i.e. (order.qvw).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 05:51:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383437#M143096</guid>
      <dc:creator />
      <dc:date>2012-09-04T05:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute the query against the In Memory Data</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383438#M143097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you load all date from the first one to the second one with binary you have all your tables in your second file.&lt;/P&gt;&lt;P&gt;So If you want your 'result' &lt;SPAN style="text-decoration: underline;"&gt;in script&lt;/SPAN&gt; you can use LOAD Resident as I said above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have some troubles with transforming your SQL to QV LOADs:&lt;/P&gt;&lt;P&gt;In QlikView you can't query from more than one table. So in general case you need to create another table from the first one and join the second one. Then you can group.&lt;/P&gt;&lt;P&gt;In your case an easier solution exists with keep statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL_QUERY:&lt;/P&gt;&lt;P&gt;left keep([Order mst])&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_id,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Order_Dtl.Unit_Price * Order_Dtl.Quantity) as Result&lt;/P&gt;&lt;P&gt;FROM [Order Detail]&lt;/P&gt;&lt;P&gt;group by order_id;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 06:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-execute-the-query-against-the-In-Memory-Data/m-p/383438#M143097</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T06:11:08Z</dc:date>
    </item>
  </channel>
</rss>

