<?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: Inner join excel and sql in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487251#M181994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, could you look at my attachments and tell me where to put the join, they are on 2 different tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 14:02:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-27T14:02:26Z</dc:date>
    <item>
      <title>Inner join excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487248#M181991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;How do I inner join an excel spreadsheet and a sql table. Both have got speciality and consultant fields but I only want the information for the spec and consultants that appear on the excel sheet, so I need to inner join right? (see the screenshot its still bringing through information that doesnt have a spec in the excel but does in the sql)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;EXCEL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Specialty,&lt;/P&gt;&lt;P&gt;Specialty as "Spec",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Business_Unit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Planned_Sessions,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant as "cons",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consultant&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;S&gt;&lt;/S&gt;&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp; "session_date" as "date",&lt;BR /&gt;&amp;nbsp; "session_unique_identifier" as "Session_id",&lt;BR /&gt;"session_specialty" as "Spec",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "scheduled_start",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "scheduled_finish",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "session_actual_start",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "session_actual_finish",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "session_consultant" as "cons",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "session_consultant",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; theatre,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "theatre_area",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "number_of_notcan_ops",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "number_of_ops";&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;BR /&gt;FROM Surgery.dbo."vw_thea_sessions_current"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 13:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487248#M181991</guid>
      <dc:creator />
      <dc:date>2013-09-27T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487249#M181992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for inner join, just add this before the sql load&lt;/P&gt;&lt;P&gt;SQL:&lt;/P&gt;&lt;P&gt;inner join (EXCEL) load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;But from your descriotion folows that you need in fact left join:&lt;/P&gt;&lt;P&gt;SQL:&lt;/P&gt;&lt;P&gt;left join (EXCEL) load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Some explanation:&lt;BR /&gt;Inner join loads data that exists in both tables.&amp;nbsp; Left join keeps all from the first table, regardless if it exists or not in the second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 13:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487249#M181992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-09-27T13:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487250#M181993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Michael.&lt;/P&gt;&lt;P&gt;the correct syntax would be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO ()&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;table name&lt;/STRONG&gt;]:&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;sql select * from &lt;STRONG&gt;table_name;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;STRONG&gt;col1,col2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[&lt;STRONG&gt;Your Excel File&lt;/STRONG&gt;]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Plan1$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember that both must have a column name in common for the qlikview associate it.&lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 13:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487250#M181993</guid>
      <dc:creator />
      <dc:date>2013-09-27T13:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487251#M181994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, could you look at my attachments and tell me where to put the join, they are on 2 different tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 14:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487251#M181994</guid>
      <dc:creator />
      <dc:date>2013-09-27T14:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join excel and sql</title>
      <link>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487252#M181995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, I could not understand very well your attachment, but anyway&lt;/P&gt;&lt;P&gt;you have to put the left join on the load script between the 2 loads, like my example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your excel and your database must have a field with the same name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can find the documentation for joins on your reference documentation.&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 14:11:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inner-join-excel-and-sql/m-p/487252#M181995</guid>
      <dc:creator />
      <dc:date>2013-09-27T14:11:53Z</dc:date>
    </item>
  </channel>
</rss>

