<?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: Data model for a query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258862#M397396</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;take all tables only once due to associative nature of qlikview it wont make any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jan 2017 10:36:17 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2017-01-02T10:36:17Z</dc:date>
    <item>
      <title>Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258860#M397394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA sql , there are two queries sub queries which are "unioned" , I had to do a data model for this, I thought of creating a qvd for each of the sub queries and finally doing a "Concatenate" but I am insisted not create a qvd for the sub queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am facing is both the sub queries are using same tables except two joins conditions are changing .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258860#M397394</guid>
      <dc:creator />
      <dc:date>2017-01-02T10:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258861#M397395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What's the issue coming when you are using this query in QlikView directly in load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258861#M397395</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-01-02T10:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258862#M397396</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;take all tables only once due to associative nature of qlikview it wont make any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258862#M397396</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-01-02T10:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258863#M397397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are no issues with the SQL, actually it is a part of View definition, we generally don't use the SQL to build a qvd&lt;/P&gt;&lt;P&gt;thats all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258863#M397397</guid>
      <dc:creator />
      <dc:date>2017-01-02T10:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258864#M397398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you observe the where clauses of both of the query in the attached file there is some difference , if I take all the tables only once , how can I handle that where and also the union in between them&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 10:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258864#M397398</guid>
      <dc:creator />
      <dc:date>2017-01-02T10:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258865#M397399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Image.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/148091_Image.png" style="height: 464px; width: 620px;" /&gt;Attaching a PIC of the difference in where conditions, please suggest any alternatives&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 11:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258865#M397399</guid>
      <dc:creator />
      <dc:date>2017-01-02T11:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258866#M397400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have worked on similar Pl/Sql to Qlik conversion. My Approach is &lt;/P&gt;&lt;P&gt;1) First Load all the used tables.&lt;/P&gt;&lt;P&gt;2) Create mapping tables if PL/Sql tables are joined to get only single column.&lt;/P&gt;&lt;P&gt;3) Write logic for script above the union&lt;/P&gt;&lt;P&gt;4) Then write logic for the script below union and concatenate distinst with the step 3&lt;/P&gt;&lt;P&gt;all in single qvw. Don't create seperate qvd as it have to load all the necessary tables twice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 11:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258866#M397400</guid>
      <dc:creator>parimikittu</dc:creator>
      <dc:date>2017-01-02T11:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258867#M397401</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;use join for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join your dimensional table to your fact table and avoid this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 11:27:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258867#M397401</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-01-02T11:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258868#M397402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Prashanth and vk Kri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vk Kri:&lt;/P&gt;&lt;P&gt;I have nearly 10 tables in each query above and below Union and cannot create a data model for all of them as we have to join some of the tables, but all of them are OLTP tables and more over I have 17 such subqueries , in the file I have listed only 2 of them&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prashanth:&lt;/P&gt;&lt;P&gt;All are OLTP tables, I think I have to check in this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 11:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258868#M397402</guid>
      <dc:creator />
      <dc:date>2017-01-02T11:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Data model for a query</title>
      <link>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258869#M397403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the file, Both the queries are same except the idenified joins, So, We have to create a table with rest of the joins excluding the &lt;/P&gt;&lt;P&gt;AND trx.ship_to_site_use_id = su.site_use_id&lt;/P&gt;&lt;P&gt;AND trx.ship_to_customer_id = ac.customer_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND trx.bill_to_site_use_id = su.site_use_id&lt;/P&gt;&lt;P&gt;AND trx.bill_to_customer_id = ac.customer_id&lt;/P&gt;&lt;P&gt;Once a table with joins is created(Call it TAB). We have to join based on these&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AND trx.ship_to_site_use_id = su.site_use_id&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AND trx.ship_to_customer_id = ac.customer_id&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and form TAB1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and then join TAB with &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AND trx.bill_to_site_use_id = su.site_use_id&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AND trx.bill_to_customer_id = ac.customer_id&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and Call it TAB2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Then concatenate distinct on TAB1 and TAB2.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If rest of the subqueries are different, Then we either need to the understand the prupose of the Pl/SQL and desgin a App from scratch without looking into the PL/SQL and with help of Business users or replicate the PL/SQL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 12:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-model-for-a-query/m-p/1258869#M397403</guid>
      <dc:creator>parimikittu</dc:creator>
      <dc:date>2017-01-02T12:33:37Z</dc:date>
    </item>
  </channel>
</rss>

