<?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 Reference a table before field name with SQL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-a-table-before-field-name-with-SQL/m-p/198222#M713780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats not quite what I am after.&lt;/P&gt;&lt;P&gt;In the table AOCResults there is a field with data, named SPO2Meas.&lt;/P&gt;&lt;P&gt;The same field exists in AOCScores.&lt;/P&gt;&lt;P&gt;I need the SQL to only display the data from AOCResults.&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2011 13:09:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-05T13:09:09Z</dc:date>
    <item>
      <title>Reference a table before field name with SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-a-table-before-field-name-with-SQL/m-p/198220#M713778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have two tables, with the same fields in both (I know what you are thinking, but I inherited this from someone else...!). I need to link them as they contain useable data in both tables. For instance SPO2Meas is the field name but I can't work out how to reference this to the first table PE29_AOCResults and not to PE29_AOCScores.&lt;/P&gt;&lt;P&gt;In other words, how can I make it work like table1.fieldname as newfieldname&lt;/P&gt;&lt;P&gt;hope this helps, here is the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;AOC:&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&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 style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;//SQL SELECT &lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRFUniqueId as %KEY_PRFUID,&lt;/P&gt;SPO2Meas; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//WHERE IncDate &amp;gt;= DateAdd(month,-48,GETDATE())&lt;/P&gt;&lt;P&gt;) prf&lt;/P&gt;&lt;P&gt;ON&lt;/P&gt;&lt;P&gt;aor.PRFUniqueId = prf.PRFUniqueId&lt;/P&gt;&lt;P&gt;inner JOIN&lt;/P&gt;&lt;P&gt;[TCMPRF].[dbo].[PE29_AOCSCores] aos&lt;/P&gt;&lt;P&gt;ON&lt;/P&gt;&lt;P&gt;aos.PRFUniqueId = aor.PRFUniqueId&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;FROM TCMPRF.dbo."PE29_AOCResults" aor&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;(SELECT PRFUniqueId FROM TCMPRF.dbo."PE29_AOCResults"&lt;/P&gt;&lt;P&gt;where IncDate between '01-Nov-2008' and getdate()&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; as Counter,&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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>Tue, 05 Apr 2011 12:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-a-table-before-field-name-with-SQL/m-p/198220#M713778</guid>
      <dc:creator />
      <dc:date>2011-04-05T12:39:22Z</dc:date>
    </item>
    <item>
      <title>Reference a table before field name with SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-a-table-before-field-name-with-SQL/m-p/198221#M713779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phil,&lt;/P&gt;&lt;P&gt;You may use:&lt;/P&gt;&lt;P&gt;Qualify *;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Unqualify *;&lt;/P&gt;&lt;P&gt;Instead of * you could also specify fields you want to qualify or unqualify. See documentation for these two functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 12:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-a-table-before-field-name-with-SQL/m-p/198221#M713779</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2011-04-05T12:42:31Z</dc:date>
    </item>
    <item>
      <title>Reference a table before field name with SQL</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-a-table-before-field-name-with-SQL/m-p/198222#M713780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats not quite what I am after.&lt;/P&gt;&lt;P&gt;In the table AOCResults there is a field with data, named SPO2Meas.&lt;/P&gt;&lt;P&gt;The same field exists in AOCScores.&lt;/P&gt;&lt;P&gt;I need the SQL to only display the data from AOCResults.&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 13:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-a-table-before-field-name-with-SQL/m-p/198222#M713780</guid>
      <dc:creator />
      <dc:date>2011-04-05T13:09:09Z</dc:date>
    </item>
  </channel>
</rss>

