<?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: Linking fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Linking-fields/m-p/1092757#M920568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SQL statement is executed by your database server, not Qlikview. If the SQL statement doesn't do what you want then ask your local friendly database administrator to help you troubleshoot it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2016 18:21:29 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-04-25T18:21:29Z</dc:date>
    <item>
      <title>Linking fields</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-fields/m-p/1092756#M920567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been given the following syntax to use when extracting data from an SQL database...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT FORMRESULTKEY, FormResultDate, IdentityReference, IdentityCompany, JBH_COMPANY, JBH_CONTRACT_REF, JBH_AREA, CNT_DESCRIPTION &lt;/P&gt;&lt;P&gt;FROM "PM_DATAMART" (NOLOCK) &lt;/P&gt;&lt;P&gt;JOIN "WM_JOB_HEADER" (NOLOCK) &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON JBH_JOB_REF COLLATE SQL_Latin1_General_CP1_CI_AS = CONVERT(VARCHAR(7),IdentityReference) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AND JBH_COMPANY COLLATE SQL_Latin1_General_CP1_CI_AS = IdentityCompany&lt;/P&gt;&lt;P&gt;JOIN "Live_FHG_TotalRepairs".dbo."WM_CONTRACT" (NOLOCK)&lt;/P&gt;&lt;P&gt;ON JBH_COMPANY = CNT_COMPANY&lt;/P&gt;&lt;P&gt;AND JBH_CONTRACT_REF = CNT_CODE&lt;/P&gt;&lt;P&gt;WHERE FormReference LIKE '%HP HSC%' &lt;/P&gt;&lt;P&gt;AND FormElementReference = 'HPYESNO' &lt;/P&gt;&lt;P&gt;AND FRAValue = 'YES';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've highlighted the text I'm struggling with. JBH_JOB_REF is a field from one table and IdentifyReference is the same field from another table and should link, the difference being JBH_JOB_REF is for example, 1000003 and IdentityReference is 1000003[1] which is why I'm surmising the 'CONVERT' function is there so that it includes the first 7 characters only.&amp;nbsp; The extract works fine and doesn't error but there's no link between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the script being used correctly for QlikView? Would love it if someone could assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122600_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-fields/m-p/1092756#M920567</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linking fields</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-fields/m-p/1092757#M920568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SQL statement is executed by your database server, not Qlikview. If the SQL statement doesn't do what you want then ask your local friendly database administrator to help you troubleshoot it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 18:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-fields/m-p/1092757#M920568</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-25T18:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Linking fields</title>
      <link>https://community.qlik.com/t5/QlikView/Linking-fields/m-p/1092758#M920569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could apply a preceeding load and do the transforming/cleaning there like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load SQL SELECT FORMRESULTKEY, FormResultDate, num(left(IdentityReference, 7)) as IdentityReference, IdentityCompany, JBH_COMPANY, JBH_CONTRACT_REF, JBH_AREA, CNT_DESCRIPTION;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT FORMRESULTKEY, FormResultDate, IdentityReference, IdentityCompany, JBH_COMPANY, JBH_CONTRACT_REF, JBH_AREA, CNT_DESCRIPTION &lt;/P&gt;&lt;P&gt;FROM "PM_DATAMART" (NOLOCK) &lt;/P&gt;&lt;P&gt;JOIN "WM_JOB_HEADER" (NOLOCK) &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON JBH_JOB_REF COLLATE SQL_Latin1_General_CP1_CI_AS = CONVERT(VARCHAR(7),IdentityReference) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AND JBH_COMPANY COLLATE SQL_Latin1_General_CP1_CI_AS = IdentityCompany&lt;/P&gt;&lt;P&gt;JOIN "Live_FHG_TotalRepairs".dbo."WM_CONTRACT" (NOLOCK)&lt;/P&gt;&lt;P&gt;ON JBH_COMPANY = CNT_COMPANY&lt;/P&gt;&lt;P&gt;AND JBH_CONTRACT_REF = CNT_CODE&lt;/P&gt;&lt;P&gt;WHERE FormReference LIKE '%HP HSC%' &lt;/P&gt;&lt;P&gt;AND FormElementReference = 'HPYESNO' &lt;/P&gt;&lt;P&gt;AND FRAValue = 'YES';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 08:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Linking-fields/m-p/1092758#M920569</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-26T08:28:36Z</dc:date>
    </item>
  </channel>
</rss>

