<?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: SQL Queries with Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690907#M250084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; just want to info for extracting data from Oracle and sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 04:42:39 GMT</pubDate>
    <dc:creator>deepakqlikview_123</dc:creator>
    <dc:date>2014-08-01T04:42:39Z</dc:date>
    <item>
      <title>SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690903#M250080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give some examples or scenarios how can we use SQL queries in qlikview moreover please suggest how is it more important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690903#M250080</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-07-31T12:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690904#M250081</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;you can use the same semantic as SQL Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First define your connection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=xxxx;Data Source=xxxx;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=xxx;Use Encryption for Data=False;Tag with column collation when possible=False];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then select the table or view:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;SQL SELECT * from tttt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even you can use EXEC to execute store procedures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;SQL EXEC sp_xxxx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 12:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690904#M250081</guid>
      <dc:creator>agomes1971</dc:creator>
      <dc:date>2014-07-31T12:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690905#M250082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Games,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any use more than this can anyone can suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 04:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690905#M250082</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-08-01T04:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690906#M250083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepak,&lt;/P&gt;&lt;P&gt;Do you want to extract data from where ? i mean from MS SQL / Oracel or from SAP form other data bases like Foxpro / Excel . Once you mention your specific requirment, one can give you examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 04:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690906#M250083</guid>
      <dc:creator>rahulhv1</dc:creator>
      <dc:date>2014-08-01T04:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690907#M250084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; just want to info for extracting data from Oracle and sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 04:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690907#M250084</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-08-01T04:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690908#M250085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First establish a connection like below and than write SQL query as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [Provider=...........=""] (XPassword is XXXXXXXXXXXXXXXXXXXXXXXXXXXXX);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT NLFDSTATIONNR,&lt;/P&gt;&lt;P&gt; SSTATIONBEZ&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM QSYS.STATION;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NLFDSTATIONNR ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DTTSPROBE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SZUSINFO1&lt;/P&gt;&lt;P&gt;FROM QSYS.STICHPROBE&lt;/P&gt;&lt;P&gt;where SZUSINFO1='590129204B232P' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 04:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690908#M250085</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2014-08-01T04:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690909#M250086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you fetch data from SQL supported database, you usually use &lt;STRONG&gt;SQL Select &lt;/STRONG&gt;after establishing the db connectivity; you can't load it directly from db using &lt;STRONG&gt;Load &lt;/STRONG&gt;like: Load field from &amp;lt;SQL/Oracle/...database&amp;gt;. Once the data is loaded using SQL Select you can use qlikview functions to transform the data on the loaded data (Preceding Load/Rsident Load) using &lt;STRONG&gt;Load &lt;/STRONG&gt;statement. Now your question might be about usability the detailing SQL commands in qlikview. To answer that, let's have a scenario where you have two tables in the database with billions of data and you are actually bothered about few hundreads of data that is the resultant &lt;STRONG&gt;JOIN&lt;/STRONG&gt; of these two tables. One way is to fetch all(billions) data from these tables into qlikview and then do the filter and join in qlikvew using load. Second way could be fetching the resulttant few hundreads of source data into qv and then operate on it. The first option is obviously not suggested. Hence, to go with better optimized option you have to apply the &lt;STRONG&gt;filter and join statement during the data load from source itself&lt;/STRONG&gt;&amp;nbsp; &lt;EM&gt;which is possible only using SQL Select statement.&lt;/EM&gt; Therefore you write like:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....//Transformation code&lt;/P&gt;&lt;P&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Preceding load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="language-sql" data-lang="sql"&gt;&lt;SPAN class="k"&gt;SQL SELECT&lt;/SPAN&gt; &lt;SPAN class="n"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;the_geom&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="n"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;iso_code&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="n"&gt;table_2&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;population&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="k"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="n"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;table_2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="k"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;iso_code&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;table_2&lt;/SPAN&gt;&lt;SPAN class="p"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;iso&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 04:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690909#M250086</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-01T04:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690910#M250087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can pull the data from SQL sever through ODBC connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the connection was established, we can start pulling the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can give conditions based fields.what ever queries we are giving in SQL same can be implemened here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more over there will be some functions in QV, we can use the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 04:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690910#M250087</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2014-08-01T04:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Queries with Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690911#M250088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;SQL SELECT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: monospace; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;the_geom&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;iso_code&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;table_2&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;population&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: monospace; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: monospace; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;table_2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="k" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: monospace; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;table_1&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;iso_code&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: monospace; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="o" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: monospace; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;table_2&lt;/SPAN&gt;&lt;SPAN class="p" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;iso&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;What if I need to do something similar, but across 2 different Database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;I have a summarized Table from 1 Database that I extract from, with only 300,000+ records&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;I need to add Fields from another Database Table that contains 12 Million records, I only need the 300,000 that are associated through 3 common fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;What's the best approach on this from a performance point of view&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="n" style="font-size: 13px; font-family: monospace; color: #3d3d3d;"&gt;Alan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 19:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Queries-with-Qlikview/m-p/690911#M250088</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2015-04-22T19:47:37Z</dc:date>
    </item>
  </channel>
</rss>

