<?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 Generate one line SQL Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226990#M79128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andi,&lt;/P&gt;&lt;P&gt;Can you upload a sample of you metadata and the result you want so as to better understand your question?&lt;/P&gt;&lt;P&gt;You might also download and install the QV SAP Connector which contains a QV SAP ScriptBuillder that uses SAP metadata to contruct QlikView Load Script. It might give you some ideas for creating your own SQL Scriptbuilder.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 22:04:17 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2011-02-23T22:04:17Z</dc:date>
    <item>
      <title>Generate one line SQL Script</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226989#M79127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qvcommunity!&lt;/P&gt;&lt;P&gt;I am often in need to generate SQL Scripts for an ETL we use. I'd love to use qv as a SQL Script generator.&lt;/P&gt;&lt;P&gt;The idea is to use the sqltable function to read meta data and then using qv functions to change the name of e.g. columns.&lt;/P&gt;&lt;P&gt;My question is how could i flatten a table in order to output one string and add e.g. a CREATE TABLE Statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 17:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226989#M79127</guid>
      <dc:creator />
      <dc:date>2011-02-23T17:48:13Z</dc:date>
    </item>
    <item>
      <title>Generate one line SQL Script</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226990#M79128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andi,&lt;/P&gt;&lt;P&gt;Can you upload a sample of you metadata and the result you want so as to better understand your question?&lt;/P&gt;&lt;P&gt;You might also download and install the QV SAP Connector which contains a QV SAP ScriptBuillder that uses SAP metadata to contruct QlikView Load Script. It might give you some ideas for creating your own SQL Scriptbuilder.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 22:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226990#M79128</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-02-23T22:04:17Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Generate one line SQL Script</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226991#M79129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Karl!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the hint. I will have a look at the SAP Connector.&lt;/P&gt;&lt;P&gt;In general the problem is as following.&lt;/P&gt;&lt;P&gt;I've got n tables with n rows and 2 columns namely ID, ColumnName.&lt;/P&gt;&lt;P&gt;The table looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======Orders =====&lt;/P&gt;&lt;P&gt;ID; Column&lt;/P&gt;&lt;P&gt;==================&lt;/P&gt;&lt;P&gt;1; OrderID&lt;/P&gt;&lt;P&gt;2; OrderItem&lt;/P&gt;&lt;P&gt;3; Order Amount&lt;/P&gt;&lt;P&gt;4; .........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======Customers =====&lt;/P&gt;&lt;P&gt;ID; Column&lt;/P&gt;&lt;P&gt;==================&lt;/P&gt;&lt;P&gt;1; Customer_ID&lt;/P&gt;&lt;P&gt;2; CustomerName&lt;/P&gt;&lt;P&gt;3; Customer......&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;The output should be 1 Table with&lt;/P&gt;&lt;P&gt;=====SQL_Queries=====&lt;/P&gt;&lt;P&gt;Tablename; SQL_Query&lt;/P&gt;&lt;P&gt;====================&lt;/P&gt;&lt;P&gt;Orders; SELECT Order_Id, OrderItem, OrderAmount, ... FROM Orders&lt;/P&gt;&lt;P&gt;Customers; SELECT Customer_ID, CustomerName, Customer.... FROM Customers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So precisly my question really is how to pivot a column to a row.&lt;/P&gt;&lt;P&gt;Thanks for suggestions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 09:51:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226991#M79129</guid>
      <dc:creator />
      <dc:date>2011-02-24T09:51:40Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Generate one line SQL Script</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226992#M79130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Andi,&lt;/P&gt;&lt;P&gt;Here is an example of what I think you are looking for. I added a third column which is the table name. If you don't have that information in the table you should be able to generate it in the QV Load Script with one of the Table Functions you can find in QV Help.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 20:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-one-line-SQL-Script/m-p/226992#M79130</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2011-02-24T20:20:30Z</dc:date>
    </item>
  </channel>
</rss>

