<?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 Help understanding key filed joins between tables in SQL database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351521#M1171096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for some help in understanding the key field joins between tables in an SQL database that is connected to Qlikview.&amp;nbsp; We have an SQL database with tables that are all joined by a common key field named PDOCSNUMBER.&amp;nbsp; This field contains a unique key that links the fields together.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; EmergencyPro;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "NOC_AT_SCENE"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT MEDICATION&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "TYPE_INTERVENTION"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;IMG __jive_id="16168" class="jive-image-thumbnail jive-image" onclick="" alt="TableView.PNG" src="https://community.qlik.com/legacyfs/online/16168_TableView.PNG" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the three different tables are not being associated (joined) by Qlikview when I look at the table view.&amp;nbsp; I am under the assumption that because the tables contain a commonly named field, they will automatically be associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice of help you can offer would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 14:43:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-13T14:43:36Z</dc:date>
    <item>
      <title>Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351521#M1171096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for some help in understanding the key field joins between tables in an SQL database that is connected to Qlikview.&amp;nbsp; We have an SQL database with tables that are all joined by a common key field named PDOCSNUMBER.&amp;nbsp; This field contains a unique key that links the fields together.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; EmergencyPro;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "NOC_AT_SCENE"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT MEDICATION&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "TYPE_INTERVENTION"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;&lt;IMG __jive_id="16168" class="jive-image-thumbnail jive-image" onclick="" alt="TableView.PNG" src="https://community.qlik.com/legacyfs/online/16168_TableView.PNG" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the three different tables are not being associated (joined) by Qlikview when I look at the table view.&amp;nbsp; I am under the assumption that because the tables contain a commonly named field, they will automatically be associated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice of help you can offer would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351521#M1171096</guid>
      <dc:creator />
      <dc:date>2012-06-13T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351522#M1171097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, Qlikview joins fields using like name fields so you could alias your fields in the load e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;ODBC&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 8pt; color: #0000ff;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; EmergencyPro;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; color: #008000;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD PCOCSNUMBER AS PRIMARYKEY;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;STRONG style="font-size: 8pt; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351522#M1171097</guid>
      <dc:creator />
      <dc:date>2012-06-13T14:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351523#M1171098</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qlikview joins the table based on the common fields in tables, so as you mentioned earlier, joined all the table using common field as PSCOCSNUMBER in sql. Use same field in qlikview while loading, so it joins all the tables automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351523#M1171098</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-06-13T15:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351524#M1171099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added the line to the script and reloaded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; EmergencyPro;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PCOCSNUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRIMARYKEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "NOC_AT_SCENE"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT MEDICATION&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "TYPE_INTERVENTION"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn not seem to have made a difference. Any ideas on why are the tables not being joined together and what can I do about that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351524#M1171099</guid>
      <dc:creator />
      <dc:date>2012-06-13T15:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351525#M1171100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have not named your fields the same, I would use the example above in my previous comment to build your script out a little: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [FIELD] AS PRIMARYKEY;&lt;/P&gt;&lt;P&gt;SQL SELECT [FIELD] FROM [DBO]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do that for each statement and it should join nicely&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351525#M1171100</guid>
      <dc:creator />
      <dc:date>2012-06-13T15:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351526#M1171101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So my script looks like this now:&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; EmergencyPro;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PCOCSNUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRIMARYKEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "NOC_AT_SCENE"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PCOCSNUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRIMARYKEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT MEDICATION&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PCOCSNUMBER&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PRIMARYKEY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT "TYPE_INTERVENTION"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- End Multiple Select Statements ------ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet they are still not joining...&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry - I am a better fireman than computer guy..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351526#M1171101</guid>
      <dc:creator />
      <dc:date>2012-06-13T15:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351527#M1171102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #008000;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;PCOCSNUMBER&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;PRIMARYKEY&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD NOC_AT_SCENE AS PRIMARYKEY;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; SELECT "NOC_AT_SCENE"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;PCOCSNUMBER&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;PRIMARYKEY&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD MEDICATION AS PRIMARYKEY;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; SELECT MEDICATION&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;PCOCSNUMBER&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #800000;"&gt;PRIMARYKEY&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; SELECT PCOCSNUMBER&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD TYPE_INTERVENTION AS PRIMARYKEY;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="background-color: #eef4f9; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; font-size: 8pt; color: #636363; font-family: Arial;"&gt; SELECT "TYPE_INTERVENTION"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351527#M1171102</guid>
      <dc:creator />
      <dc:date>2012-06-13T15:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351528#M1171103</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try like this,&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;CONNECT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; EmergencyPro;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//-------- Start Multiple Select Statements ------&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER, "NOC_AT_SCENE"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INCIDENT_DATA_2";&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER, MEDICATION&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_MEDICATIONS";&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT PCOCSNUMBER,"TYPE_INTERVENTION"&lt;BR /&gt;&lt;BR /&gt;FROM EmergencyPro.dbo."tbl_INTERVENTIONS";&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; By using this, it joins three table automatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope it helps .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351528#M1171103</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-06-13T15:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding key filed joins between tables in SQL database</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351529#M1171104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked.... THANKS...&amp;nbsp; This will help me apply the concept to other tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can't thank everyone enough for the kind assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darrel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 15:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-key-filed-joins-between-tables-in-SQL/m-p/351529#M1171104</guid>
      <dc:creator />
      <dc:date>2012-06-13T15:56:03Z</dc:date>
    </item>
  </channel>
</rss>

