<?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 Script Load from SQL Qurey in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Load-from-SQL-Qurey/m-p/1145577#M374914</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I really appreciate your help.&lt;/P&gt;&lt;P&gt;I have the following SQL query that works perfect on SQL Server Management studio:&lt;/P&gt;&lt;P&gt; select * from tbasicdata tbrd &lt;/P&gt;&lt;P&gt;join tLocations lmg on lmg.id = tbrd.map_id&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;H1 = 'internal'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;tbrd.day &amp;gt;= DATEADD(dd, -7, GETDATE())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a new table on the script called : "Activities" and to select * from the query above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;Activities:&lt;/P&gt;&lt;P&gt;load *; &lt;/P&gt;&lt;P&gt;SQL select * from tbasicrawdata tbrd &lt;/P&gt;&lt;P&gt;join tLocationsMap lmg on lmg.id = tbrd.map_id&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;H1 = 'MCE.internal'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;tbrd.day &amp;gt;= DATEADD(dd, -7, GETDATE());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it didn't work. Can someone please advise????&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 13:27:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-25T13:27:52Z</dc:date>
    <item>
      <title>Script Load from SQL Qurey</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Load-from-SQL-Qurey/m-p/1145577#M374914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I really appreciate your help.&lt;/P&gt;&lt;P&gt;I have the following SQL query that works perfect on SQL Server Management studio:&lt;/P&gt;&lt;P&gt; select * from tbasicdata tbrd &lt;/P&gt;&lt;P&gt;join tLocations lmg on lmg.id = tbrd.map_id&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;H1 = 'internal'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;tbrd.day &amp;gt;= DATEADD(dd, -7, GETDATE())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a new table on the script called : "Activities" and to select * from the query above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;Activities:&lt;/P&gt;&lt;P&gt;load *; &lt;/P&gt;&lt;P&gt;SQL select * from tbasicrawdata tbrd &lt;/P&gt;&lt;P&gt;join tLocationsMap lmg on lmg.id = tbrd.map_id&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;H1 = 'MCE.internal'&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;tbrd.day &amp;gt;= DATEADD(dd, -7, GETDATE());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it didn't work. Can someone please advise????&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 13:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Load-from-SQL-Qurey/m-p/1145577#M374914</guid>
      <dc:creator />
      <dc:date>2016-05-25T13:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script Load from SQL Qurey</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Load-from-SQL-Qurey/m-p/1145578#M374915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;didn't work" means what? Error? Wrong Data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I can see you have a column "id" into both tables, if you select * an error will be generated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always prevent yourself from select *&lt;/P&gt;&lt;P&gt;QlikView will thrown a "General Error" if your query return more than one column with same name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always be explicit about what you are selecting&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Load *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;SQL select Field1,Fieldb, from tbasicrawdata tbrd&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;join tLocationsMap lmg on lmg.id = tbrd.map_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;H1 = 'MCE.internal'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;tbrd.day &amp;gt;= DATEADD(dd, -7, GETDATE());&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 16:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Load-from-SQL-Qurey/m-p/1145578#M374915</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-05-25T16:25:46Z</dc:date>
    </item>
  </channel>
</rss>

