<?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: How to create a table box from database tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-table-box-from-database-tables/m-p/402092#M149637</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;Thanks, I've implemented via the use of recno(), as per below....even thrown in an INLINE too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works well enough for my purpose; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cntry_tbl:&lt;/P&gt;&lt;P&gt;Load * Inline &lt;/P&gt;&lt;P&gt;[ &lt;/P&gt;&lt;P&gt;ROWNO,COUNTRY , COUNTRY_2CHAR&lt;/P&gt;&lt;P&gt;1,$(COUNTRY), $(CNT_2CHAR)&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_table1:&lt;/P&gt;&lt;P&gt;LOAD recno() as ROWNO , JOBCODE_DESC RESIDENT JOBDESC_TBL;&lt;/P&gt;&lt;P&gt;OUTER JOIN &lt;/P&gt;&lt;P&gt;LOAD recno() as ROWNO , VALUE as COMPANY_CD RESIDENT COMPCD_PAY_TBL WHERE COL = 'COMPANY_CD';&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD recno() as ROWNO , VALUE as PAYGROUP RESIDENT COMPCD_PAY_TBL WHERE COL = 'PAYGROUP';&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT cntry_tbl;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with your point about why use Qlikview, the reasons are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I want to gain expertize with QV, especially scripting&lt;/LI&gt;&lt;LI&gt;I also want to evangelicize the use of QV in our very large organization&lt;/LI&gt;&lt;LI&gt;I've not had any experience with SQL queries and Excel, with my Oracle database background then I hadn't even considered it.&lt;/LI&gt;&lt;LI&gt;Eventually I hope to be able to just sent out the .qvw or .qvo for the users to run themselves.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 May 2013 11:40:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-24T11:40:41Z</dc:date>
    <item>
      <title>How to create a table box from database tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-table-box-from-database-tables/m-p/402090#M149635</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;I want to create a table box so that I can then send the data to excel easily, the problem is that I have data coming from different tables via SQL SELECTS and I want to LOAD the data so that I can create an internal table as the source of the table box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format of the data is roughly like this, each columns contents are the results of different queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="41603" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/41603_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to create a table using the fields already in the LOAD script and get a cartesian product with 000s of rows, and no blank data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to achieve this? I want to have spaces where there's no data e.g. Col1 has 1 row, Col2 has 1, Col3 has 4 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I want 5 list boxes linked together so I can then send the data to Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comments/ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 18:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-table-box-from-database-tables/m-p/402090#M149635</guid>
      <dc:creator />
      <dc:date>2013-05-23T18:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table box from database tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-table-box-from-database-tables/m-p/402091#M149636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add a rowid field to every table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableA:&lt;/P&gt;&lt;P&gt;load recno() as rowid, Col1&lt;/P&gt;&lt;P&gt;from ...somewhere....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the tables will be associated on the common rowid field. That prevents the cartesian product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But why use qlikview anyway. It's probably totally useless in qlikview if you load it that way. You might as well load the data directly from the database into excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 18:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-table-box-from-database-tables/m-p/402091#M149636</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-23T18:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table box from database tables</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-table-box-from-database-tables/m-p/402092#M149637</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;Thanks, I've implemented via the use of recno(), as per below....even thrown in an INLINE too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works well enough for my purpose; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cntry_tbl:&lt;/P&gt;&lt;P&gt;Load * Inline &lt;/P&gt;&lt;P&gt;[ &lt;/P&gt;&lt;P&gt;ROWNO,COUNTRY , COUNTRY_2CHAR&lt;/P&gt;&lt;P&gt;1,$(COUNTRY), $(CNT_2CHAR)&lt;/P&gt;&lt;P&gt;]; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_table1:&lt;/P&gt;&lt;P&gt;LOAD recno() as ROWNO , JOBCODE_DESC RESIDENT JOBDESC_TBL;&lt;/P&gt;&lt;P&gt;OUTER JOIN &lt;/P&gt;&lt;P&gt;LOAD recno() as ROWNO , VALUE as COMPANY_CD RESIDENT COMPCD_PAY_TBL WHERE COL = 'COMPANY_CD';&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD recno() as ROWNO , VALUE as PAYGROUP RESIDENT COMPCD_PAY_TBL WHERE COL = 'PAYGROUP';&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT cntry_tbl;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with your point about why use Qlikview, the reasons are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I want to gain expertize with QV, especially scripting&lt;/LI&gt;&lt;LI&gt;I also want to evangelicize the use of QV in our very large organization&lt;/LI&gt;&lt;LI&gt;I've not had any experience with SQL queries and Excel, with my Oracle database background then I hadn't even considered it.&lt;/LI&gt;&lt;LI&gt;Eventually I hope to be able to just sent out the .qvw or .qvo for the users to run themselves.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 11:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-table-box-from-database-tables/m-p/402092#M149637</guid>
      <dc:creator />
      <dc:date>2013-05-24T11:40:41Z</dc:date>
    </item>
  </channel>
</rss>

