<?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 Doubt SQL SELECT with inner join Resident Table on same step in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226468#M78671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Writing a where clause for resident table is similar to what we write for sql table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * resident Test where A='10';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join in QV works in same fashion as in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will retrieve similar data from both the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 10:14:18 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2010-12-17T10:14:18Z</dc:date>
    <item>
      <title>Doubt SQL SELECT with inner join Resident Table on same step</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226464#M78667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem and a don't know how to solve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a resident table and I want to connect to other server with ODBC and do an inner join with the resident table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do that on SQL select statement on QV is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;c1,&lt;/P&gt;&lt;P&gt;c2,&lt;/P&gt;&lt;P&gt;c3,&lt;/P&gt;&lt;P&gt;c4,&lt;/P&gt;&lt;P&gt;c5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;P.c1 as c1,&lt;/P&gt;&lt;P&gt;P.c2 as c2,&lt;/P&gt;&lt;P&gt;P.c3 as c3,&lt;/P&gt;&lt;P&gt;P.c4 as c4,&lt;/P&gt;&lt;P&gt;P.c5 as c5&lt;/P&gt;&lt;P&gt;FROM P.T1 P INNER JOIN Q.T1 Q on P.TYPE = Q.TYPE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Q.t1 needs to be a resident table, and only I want to load the inner join data, not all the data from t1 and then do the inner join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 09:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226464#M78667</guid>
      <dc:creator />
      <dc:date>2010-12-17T09:32:21Z</dc:date>
    </item>
    <item>
      <title>Doubt SQL SELECT with inner join Resident Table on same step</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226465#M78668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use inner join in below way.&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;a,b,c resident Test;&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql a,c,d from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure only your key field names are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 09:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226465#M78668</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-12-17T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Doubt SQL SELECT with inner join Resident Table on same step</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226466#M78669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Do something like the following instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;QT1:LOAD * INLINE [c1, c2, c3, c4, c5, TYPEA, 1, 1, 1, 1, XB, 2, 2, 2, 2, XC, 3, 3, 3, 3, X]; FromDatabase: // not needed, but clarifyingINNER JOIN (QT1) LOAD c1, c2, c3, c4, c5, TYPE;SQL SELECT * FROM P;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;You can do the join in the QlikView LOAD part, and that should work (with your data instead my dummy example, of course).&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 09:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226466#M78669</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-17T09:39:36Z</dc:date>
    </item>
    <item>
      <title>Doubt SQL SELECT with inner join Resident Table on same step</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226467#M78670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On your example I have several questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to add a a where clause on QT1?&lt;/P&gt;&lt;P&gt;SQL Select will load only the inner join data or will load all the data and then QV does an inner join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 09:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226467#M78670</guid>
      <dc:creator />
      <dc:date>2010-12-17T09:56:46Z</dc:date>
    </item>
    <item>
      <title>Doubt SQL SELECT with inner join Resident Table on same step</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226468#M78671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Writing a where clause for resident table is similar to what we write for sql table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * resident Test where A='10';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join in QV works in same fashion as in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will retrieve similar data from both the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 10:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226468#M78671</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2010-12-17T10:14:18Z</dc:date>
    </item>
    <item>
      <title>Doubt SQL SELECT with inner join Resident Table on same step</title>
      <link>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226469#M78672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[quote user="Jordi Pérez"]How to add a a where clause on QT1?&lt;/P&gt;&lt;P&gt;First, QlikView, although similar, is not SQL. Anyway, based on the example above, you can do something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;QT1B:LOAD *RESIDENT QT1 WHERE TYPE = 'X';&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;[quote user="Jordi Pérez"]SQL Select will load only the inner join data or will load all the data and then QV does an inner join?&lt;/P&gt;&lt;P&gt;The example above will pull all records from database. It's QlikView that does the JOIN. To do a join you need at least one field in each of the tables to be joined named alike. It's not a join in the source (as it will be should both tables were in SQL Server).&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 10:28:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Doubt-SQL-SELECT-with-inner-join-Resident-Table-on-same-step/m-p/226469#M78672</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-17T10:28:12Z</dc:date>
    </item>
  </channel>
</rss>

