<?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: SQL Query convert to Qlikview Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1757110#M720309</link>
    <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;First of all, Sir Thank you so much for devoting your time on my Post. I really appreciate that.&lt;/P&gt;&lt;P&gt;This query giving below error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QL##f - SqlState: S1000, ErrorCode: 25156, ErrorMsg: [Oracle][ODBC][Ora]ORA-25156: old style outer join (+) cannot be used with ANSI joins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The approach I followed is that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dim_case:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT *&lt;BR /&gt;FROM dim_case;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STORE&amp;nbsp;dim_case into my location\dim_case.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DROP TABLE&amp;nbsp;dim_case;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dim_product:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT *&lt;BR /&gt;FROM dim_product;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STORE dim_product into my location\dim_product.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DROP TABLE dim_product;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;same I did for all the tables involved in SQL Query. Stored all of them in a qvd format and after getting all individual tables i'm trying to connect them using joins and finally creating data model out of it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sir, one question which is bothering me, How did you find out from the above SQL query that this is a join and not inner join, left join or any other type of join. In SQL query, there is nowhere joins are used. How query work and joins work in that case. I need to understand that part at the time of joining my new Model while referring&amp;nbsp;the SQL query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 08:06:34 GMT</pubDate>
    <dc:creator>erric3210</dc:creator>
    <dc:date>2020-10-30T08:06:34Z</dc:date>
    <item>
      <title>SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1755158#M720304</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have SQL Query with me and referring this I need to build same query in Qlikview using&amp;nbsp; Qlikview Script not same below SQL.&lt;/P&gt;&lt;P&gt;This is something new to me and I can't see Joins in the below SQL Query. I'm referring the below SQL query to build data model script in Qlikview. Here is my SQL Query:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;BR /&gt;AER.CASE_ID,&lt;BR /&gt;AER.AER_ID,&lt;BR /&gt;AER.VERSION_NO,&lt;BR /&gt;AER.AER_INIT_RECV_DATE IRD_ADJ,&lt;BR /&gt;UPPER(AER_PRODUCT.TRADE_NAME) TRADE_NAME,&lt;BR /&gt;AER_PRODUCT.SEQ_PRODUCT,&lt;BR /&gt;AER_REACT.SEQ_REACT&lt;BR /&gt;FROM&lt;BR /&gt;DIM_CASE AER,&lt;BR /&gt;CONFIG_COUNTRY SR_COUNTRY_REGION,&lt;BR /&gt;( SELECT CASE_ID, SEQ_PRODUCT, CASE_PRODUCT_ID, PRIMARY_INDICATION_PT_CODE,PRODUCT_FLAG, DIM_PRODUCT.TRADE_NAME, CONFIG_PRODUCT.PRODUCT_GROUP_NAME,&lt;BR /&gt;FLAG_RMT&lt;BR /&gt;FROM CONFIG_PRODUCT, DIM_PRODUCT&lt;BR /&gt;WHERE UPPER(DIM_PRODUCT.TRADE_NAME)=UPPER(CONFIG_PRODUCT.TRADE_NAME ) AND CONFIG_PRODUCT.CONFIG_ID=0&lt;BR /&gt;AND FLAG_RMT = 'YES' AND NVL(DIM_PRODUCT.PRODUCT_RECORD_CATEGORY,'Other') IN ( 'Valid Product Record','Other' )&lt;BR /&gt;AND CONFIG_PRODUCT.DM_EFFECTIVE_DATE_END = '01-JAN-2099'&lt;BR /&gt;) AER_PRODUCT,&lt;BR /&gt;( SELECT * FROM CONFIG_INDICATION WHERE IS_ACTIVE = 'YES' ) CONFIG_INDICATION,&lt;BR /&gt;DIM_EVENT AER_REACT,&lt;BR /&gt;FACT_CASE_PRODUCT_EVENT,&lt;BR /&gt;(Select report_parameter1_code product_group_name from sr_report_parameter where parameter_list_type = 'RMT_PRODUCT_OFFSET_FOR IBD') OFFSET&lt;BR /&gt;WHERE ( AER.CASE_ID=FACT_CASE_PRODUCT_EVENT.CASE_ID )&lt;BR /&gt;AND FACT_CASE_PRODUCT_EVENT.CASE_PRODUCT_ID = AER_PRODUCT.CASE_PRODUCT_ID&lt;BR /&gt;AND FACT_CASE_PRODUCT_EVENT.CASE_EVENT_ID = AER_REACT.CASE_EVENT_ID&lt;BR /&gt;AND ( SR_COUNTRY_REGION.CONFIG_ID(+)=0 )&lt;BR /&gt;AND ( AER.AER_COUNTRY=SR_COUNTRY_REGION.COUNTRY_NAME(+) )&lt;BR /&gt;AND AER_PRODUCT.PRIMARY_INDICATION_PT_CODE = CONFIG_INDICATION.INDICATION_PT_CODE (+)&lt;BR /&gt;AND AER_PRODUCT.PRODUCT_GROUP_NAME = CONFIG_INDICATION.PRODUCT_NAME (+)&lt;BR /&gt;AND AER_PRODUCT.PRODUCT_GROUP_NAME = OFFSET.PRODUCT_GROUP_NAME (+)&lt;BR /&gt;AND AER_PRODUCT.PRODUCT_FLAG = 'Suspect'&lt;BR /&gt;AND ( AER.latest_aer_version_no = 'YES' and AER.approval_status = 'YES'&lt;BR /&gt;AND AER_REACT.SEQ_AE IS NULL&lt;BR /&gt;AND AER.aer_case_deleted = 'NO' and AER.aer_deleted = 'NO' );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need your help guys.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1755158#M720304</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2024-11-15T23:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1755532#M720305</link>
      <description>&lt;LI-CODE lang="markup"&gt;Table1:
LOAD * ;
SQL SELECT AER.case_id, 
       AER.aer_id, 
       AER.version_no, 
       AER.aer_init_recv_date        IRD_ADJ, 
       Upper(AER_PRODUCT.trade_name) TRADE_NAME, 
       AER_PRODUCT.seq_product, 
       AER_REACT.seq_react 
FROM   dim_case AER, 
       config_country SR_COUNTRY_REGION, 
       (SELECT case_id, 
               seq_product, 
               case_product_id, 
               primary_indication_pt_code, 
               product_flag, 
               dim_product.trade_name, 
               config_product.product_group_name, 
               flag_rmt 
        FROM   config_product, 
               dim_product 
        WHERE  Upper(dim_product.trade_name) = Upper(config_product.trade_name) 
               AND config_product.config_id = 0 
               AND flag_rmt = 'YES' 
               AND Nvl(dim_product.product_record_category, 'Other') IN ( 
                   'Valid Product Record', 'Other' ) 
               AND config_product.dm_effective_date_end = '01-JAN-2099') 
       AER_PRODUCT, 
       (SELECT * 
        FROM   config_indication 
        WHERE  is_active = 'YES') CONFIG_INDICATION, 
       dim_event AER_REACT, 
       fact_case_product_event, 
       (SELECT report_parameter1_code product_group_name 
        FROM   sr_report_parameter 
        WHERE  parameter_list_type = 'RMT_PRODUCT_OFFSET_FOR IBD') OFFSET 
WHERE  ( AER.case_id = fact_case_product_event.case_id ) 
       AND fact_case_product_event.case_product_id = AER_PRODUCT.case_product_id 
       AND fact_case_product_event.case_event_id = AER_REACT.case_event_id 
       AND ( SR_COUNTRY_REGION.config_id(+) = 0 ) 
       AND ( AER.aer_country = SR_COUNTRY_REGION.country_name(+) ) 
       AND AER_PRODUCT.primary_indication_pt_code = 
           CONFIG_INDICATION.indication_pt_code (+) 
       AND AER_PRODUCT.product_group_name = CONFIG_INDICATION.product_name (+) 
       AND AER_PRODUCT.product_group_name = OFFSET.product_group_name (+) 
       AND AER_PRODUCT.product_flag = 'Suspect' 
       AND ( AER.latest_aer_version_no = 'YES' 
             AND AER.approval_status = 'YES' 
             AND AER_REACT.seq_ae IS NULL 
             AND AER.aer_case_deleted = 'NO' 
             AND AER.aer_deleted = 'NO' ); &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 23 Oct 2020 16:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1755532#M720305</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2020-10-23T16:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1755670#M720306</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;benvatvandata&lt;/SPAN&gt;&lt;SPAN class="login-bold"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thanks for the reply &amp;amp; sharing this amazing code. I really appreciate your help. It's a new learning for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Sorry, I haven't explain it well. What I'm trying to achieve here &amp;amp; what exactly my requirement is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;1): Firstly, I stored individual tables from above SQL query with required fields in a qvd format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;2): Secondly, I tried to join other tables which are in the SQL query with&amp;nbsp;where conditions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Now, the problem is I don't know which join I need to use in Qlikview because referring SQL query I'm not able to find out that which join is used in it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Sorry again for not explaining my requirement correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Oct 2020 18:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1755670#M720306</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-10-24T18:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1756013#M720307</link>
      <description>&lt;P&gt;No problem, could you share your script where you stored the individual tables? Or do you think you may need to revise that part too?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 16:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1756013#M720307</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2020-10-26T16:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1756018#M720308</link>
      <description>&lt;P&gt;Also... if you're able to query the database... could you let me know if the below query gives the same results as the query you initially posted?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT aer.case_id, 
       aer.aer_id, 
       aer.version_no, 
       aer.aer_init_recv_date        ird_adj, 
       Upper(aer_product.trade_name) trade_name, 
       aer_product.seq_product, 
       aer_react.seq_react 
FROM   dim_case AER 
       join fact_case_product_event 
         ON AER.case_id = fact_case_product_event.case_id 
       join 
              (SELECT case_id, 
                    seq_product, 
                    case_product_id, 
                    primary_indication_pt_code, 
                    product_flag, 
                    dim_product.trade_name, 
                    config_product.product_group_name, 
                    flag_rmt 
             FROM   config_product, 
                    dim_product 
             WHERE  Upper(dim_product.trade_name) = Upper( 
                    config_product.trade_name) 
                    AND config_product.config_id = 0 
                    AND flag_rmt = 'YES' 
                    AND Nvl(dim_product.product_record_category, 'Other') IN ( 
                        'Valid Product Record', 'Other' ) 
                    AND config_product.dm_effective_date_end = '01-JAN-2099') 
              AER_PRODUCT 
         ON fact_case_product_event.case_product_id = 
            AER_PRODUCT.case_product_id 
       join dim_event AER_REACT 
         ON fact_case_product_event.case_event_id = AER_REACT.case_event_id 
       join config_country SR_COUNTRY_REGION 
         ON AER.aer_country = SR_COUNTRY_REGION.country_name(+) 
       join (SELECT * 
             FROM   config_indication 
             WHERE  is_active = 'YES') CONFIG_INDICATION 
         ON AER_PRODUCT.primary_indication_pt_code = 
                 CONFIG_INDICATION.indication_pt_code (+) 
            AND AER_PRODUCT.product_group_name = 
                CONFIG_INDICATION.product_name (+) 
       join (SELECT report_parameter1_code product_group_name 
             FROM   sr_report_parameter 
             WHERE  parameter_list_type = 'RMT_PRODUCT_OFFSET_FOR IBD') OFFSET 
         ON AER_PRODUCT.product_groupname = OFFSET.product_group_name (+) 
WHERE  sr_country_region.config_id(+) = 0 
       AND aer_product.product_flag = 'Suspect' 
       AND aer.latest_aer_version_no = 'YES' 
       AND aer.approval_status = 'YES' 
       AND aer_react.seq_ae IS NULL 
       AND aer.aer_case_deleted = 'NO' 
       AND aer.aer_deleted = 'NO' &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 17:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1756018#M720308</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2020-10-26T17:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1757110#M720309</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;First of all, Sir Thank you so much for devoting your time on my Post. I really appreciate that.&lt;/P&gt;&lt;P&gt;This query giving below error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QL##f - SqlState: S1000, ErrorCode: 25156, ErrorMsg: [Oracle][ODBC][Ora]ORA-25156: old style outer join (+) cannot be used with ANSI joins&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The approach I followed is that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dim_case:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT *&lt;BR /&gt;FROM dim_case;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STORE&amp;nbsp;dim_case into my location\dim_case.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DROP TABLE&amp;nbsp;dim_case;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;dim_product:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SELECT *&lt;BR /&gt;FROM dim_product;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;STORE dim_product into my location\dim_product.qvd(qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DROP TABLE dim_product;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;same I did for all the tables involved in SQL Query. Stored all of them in a qvd format and after getting all individual tables i'm trying to connect them using joins and finally creating data model out of it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sir, one question which is bothering me, How did you find out from the above SQL query that this is a join and not inner join, left join or any other type of join. In SQL query, there is nowhere joins are used. How query work and joins work in that case. I need to understand that part at the time of joining my new Model while referring&amp;nbsp;the SQL query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 08:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1757110#M720309</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-10-30T08:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1757254#M720310</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;This query is giving me below error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;QVX_UNEXPECTED_END_OF_DATA: SQL##f - SqlState: 08S01, ErrorCode: 3113, ErrorMsg: [Oracle][ODBC][Ora]ORA-03113: end-of-file on communication channel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This error i'm getting from your first reply in which you've customized SQl Query.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 08:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1757254#M720310</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-10-30T08:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1757909#M720312</link>
      <description>&lt;P&gt;ahh my guess is those (+) signs are causing the issue... i've never really used those joins before (was just trying my best to use your code, but joining in different way)... what about if you just try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT aer.case_id, 
       aer.aer_id, 
       aer.version_no, 
       aer.aer_init_recv_date        ird_adj, 
       Upper(aer_product.trade_name) trade_name, 
       aer_product.seq_product, 
       aer_react.seq_react 
FROM   dim_case AER 
       join fact_case_product_event 
         ON AER.case_id = fact_case_product_event.case_id 
       join 
              (SELECT case_id, 
                    seq_product, 
                    case_product_id, 
                    primary_indication_pt_code, 
                    product_flag, 
                    dim_product.trade_name, 
                    config_product.product_group_name, 
                    flag_rmt 
             FROM   config_product, 
                    dim_product 
             WHERE  Upper(dim_product.trade_name) = Upper( 
                    config_product.trade_name) 
                    AND config_product.config_id = 0 
                    AND flag_rmt = 'YES' 
                    AND Nvl(dim_product.product_record_category, 'Other') IN ( 
                        'Valid Product Record', 'Other' ) 
                    AND config_product.dm_effective_date_end = '01-JAN-2099') 
              AER_PRODUCT 
         ON fact_case_product_event.case_product_id = 
            AER_PRODUCT.case_product_id 
       join dim_event AER_REACT 
         ON fact_case_product_event.case_event_id = AER_REACT.case_event_id 
       join config_country SR_COUNTRY_REGION 
         ON AER.aer_country = SR_COUNTRY_REGION.country_name
       join (SELECT * 
             FROM   config_indication 
             WHERE  is_active = 'YES') CONFIG_INDICATION 
         ON AER_PRODUCT.primary_indication_pt_code = 
                 CONFIG_INDICATION.indication_pt_code
            AND AER_PRODUCT.product_group_name = 
                CONFIG_INDICATION.product_name 
       join (SELECT report_parameter1_code product_group_name 
             FROM   sr_report_parameter 
             WHERE  parameter_list_type = 'RMT_PRODUCT_OFFSET_FOR IBD') OFFSET 
         ON AER_PRODUCT.product_groupname = OFFSET.product_group_name 
WHERE  sr_country_region.config_id = 0 
       AND aer_product.product_flag = 'Suspect' 
       AND aer.latest_aer_version_no = 'YES' 
       AND aer.approval_status = 'YES' 
       AND aer_react.seq_ae IS NULL 
       AND aer.aer_case_deleted = 'NO' 
       AND aer.aer_deleted = 'NO' &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry been a busy week, I'll try to look into joining the qvds when I have some free time this week. I wanted to know if your original query produced the same results as the new query to validate if they are inner joins/outer joins/etc. (since I haven't used the '(+)' types of joins before)&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 17:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1757909#M720312</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2020-11-02T17:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758301#M720313</link>
      <description>&lt;P&gt;Just curious... is there a reason why you need to store each table as a qvd?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you planning on building a lot more on top of this?&lt;/P&gt;&lt;P&gt;Could you share your full load script for storing the qvd's? I think I could create your load script without too much difficulty, but I need some clarification so that I don't write code and then have to scrap it all because one little bit of information ruins the whole plan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 01:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758301#M720313</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2020-11-04T01:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758597#M720314</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14069"&gt;@erric3210&lt;/a&gt;&amp;nbsp; Just going to toss out the Help Doc on QlikView Join as well, it covers all the different types, hopefully that may help a little as well.&amp;nbsp; You can find some further example related items in the Design Blog area too, so I will leave a link for that as well, but the partner seems to be taking great care of you one this one, I just wanted to toss in this other info as well for others in the future too.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Join.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Join.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 19:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758597#M720314</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-11-04T19:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758639#M720315</link>
      <description>&lt;P&gt;Hi benvatvandata,&lt;/P&gt;&lt;P&gt;Sir, reason for storing is just to test out all the possibilities related to memory load, load time, performance. But the main purpose it to understand how joins are working in SQL (maybe that is the Inner Join in the Query above). I'm trying to replicate the same SQL script in Qlikview and out of that want to generate same result with SQL query as well Qlikview Script.&lt;/P&gt;&lt;P&gt;The new updated query which you've shared, I need to test it out. I'll share the results with you.&lt;/P&gt;&lt;P&gt;Yes, sir there are 4-5 more queries similar to that but those are master tables queries so no issue in that.&lt;/P&gt;&lt;P&gt;You're absolutely right Sir.&lt;/P&gt;&lt;P&gt;What I'm trying to achieve here is:&lt;/P&gt;&lt;P&gt;1): First, I'm creating a Document.&lt;/P&gt;&lt;P&gt;2): Secondly, I'm finding how many tables are used in the SQL Query. Documenting all those table Names and used fields from in it.&lt;/P&gt;&lt;P&gt;3): Understanding the Data by extracting the tables individually.&lt;/P&gt;&lt;P&gt;4): Then, storing all the used tables individually in my system Folder using Qlikview Store command. Qvd's concept is ausm.&lt;/P&gt;&lt;P&gt;5): After this, I try to understand the joining keys, cardinality, relationships b/w tables. What can be done to increase the performance at the time of joining or any other way so that data will not duplicate, data discrepancy should not come, performance will not degrade. Where ever required I try to use Hash Keys, Auto number or creating composite keys.&lt;/P&gt;&lt;P&gt;I'm in a learning phase and you really helped me out. Really appreciate that.&lt;/P&gt;&lt;P&gt;I'm doing this for the better performance, speed &amp;amp; optimization.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 20:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758639#M720315</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-11-04T20:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query convert to Qlikview Script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758642#M720316</link>
      <description>&lt;P&gt;Hi Brett Sir,&lt;/P&gt;&lt;P&gt;Thank you for sharing those lovely links. Some doubts are cleared after going through those links.&lt;/P&gt;&lt;P&gt;Design blog was really ausm. So much power packed content.&lt;/P&gt;&lt;P&gt;Thanks again for sharing those links.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-convert-to-Qlikview-Script/m-p/1758642#M720316</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2020-11-04T21:00:53Z</dc:date>
    </item>
  </channel>
</rss>

