<?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 Need help integrating SQL statement into QV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-integrating-SQL-statement-into-QV/m-p/150629#M716340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not very familiar with SQL, but have been given a query that was designed here by some developers and am trying to build a document in QV. I need to integrate the following SQL's into my QV Script, either as a SQL Select or rewritten in the Load statement. Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;LOAD&lt;BR /&gt;"W_GPA_ID AS [IHR GPA ID],&lt;BR /&gt;ACTIONDTTM,&lt;BR /&gt;"W_GPA_STATUS" AS [IHR GPA Status];&lt;BR /&gt;SQL SELECT * FROM SYSADM."PS_W_GPA_STS_TBL";&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Here are the SQL's that I need to integrate somehow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;(SELECT MAX(actiondttm)&lt;BR /&gt; FROM sysadm.ps_w_gpa_sts_tbl&lt;BR /&gt; WHERE w_gpa_id = A.w_gpa_id&lt;BR /&gt; AND w_start_oprid = d.w_approver1&lt;BR /&gt; AND w_gpa_status = 'IHV' ) "Approval 1 Date"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;(SELECT MAX(actiondttm)&lt;BR /&gt; FROM sysadm.ps_w_gpa_sts_tbl&lt;BR /&gt; WHERE w_gpa_id = A.w_gpa_id&lt;BR /&gt; AND w_start_oprid = d.w_approver2&lt;BR /&gt; AND w_gpa_status = 'CO' ) "Approval 2 Date"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;'A' refers to PS_W_GPA_STAT_CHG&lt;/P&gt;&lt;P&gt;'D' refers to PS_W_PA_APPROVER&lt;/P&gt;&lt;P&gt;I hope this makes sense! I've been puzzling over this since yesterday and keep getting various Oracle error messages each time I reload (everything from "SQL Command not Ended Correctly", "Invalid Table Name", and "Missing Right Parentheses") depending on my formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 22:47:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-29T22:47:19Z</dc:date>
    <item>
      <title>Need help integrating SQL statement into QV</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-integrating-SQL-statement-into-QV/m-p/150629#M716340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not very familiar with SQL, but have been given a query that was designed here by some developers and am trying to build a document in QV. I need to integrate the following SQL's into my QV Script, either as a SQL Select or rewritten in the Load statement. Here is what I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;LOAD&lt;BR /&gt;"W_GPA_ID AS [IHR GPA ID],&lt;BR /&gt;ACTIONDTTM,&lt;BR /&gt;"W_GPA_STATUS" AS [IHR GPA Status];&lt;BR /&gt;SQL SELECT * FROM SYSADM."PS_W_GPA_STS_TBL";&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Here are the SQL's that I need to integrate somehow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;(SELECT MAX(actiondttm)&lt;BR /&gt; FROM sysadm.ps_w_gpa_sts_tbl&lt;BR /&gt; WHERE w_gpa_id = A.w_gpa_id&lt;BR /&gt; AND w_start_oprid = d.w_approver1&lt;BR /&gt; AND w_gpa_status = 'IHV' ) "Approval 1 Date"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;(SELECT MAX(actiondttm)&lt;BR /&gt; FROM sysadm.ps_w_gpa_sts_tbl&lt;BR /&gt; WHERE w_gpa_id = A.w_gpa_id&lt;BR /&gt; AND w_start_oprid = d.w_approver2&lt;BR /&gt; AND w_gpa_status = 'CO' ) "Approval 2 Date"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;'A' refers to PS_W_GPA_STAT_CHG&lt;/P&gt;&lt;P&gt;'D' refers to PS_W_PA_APPROVER&lt;/P&gt;&lt;P&gt;I hope this makes sense! I've been puzzling over this since yesterday and keep getting various Oracle error messages each time I reload (everything from "SQL Command not Ended Correctly", "Invalid Table Name", and "Missing Right Parentheses") depending on my formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 22:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-integrating-SQL-statement-into-QV/m-p/150629#M716340</guid>
      <dc:creator />
      <dc:date>2009-07-29T22:47:19Z</dc:date>
    </item>
    <item>
      <title>Need help integrating SQL statement into QV</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-integrating-SQL-statement-into-QV/m-p/150630#M716341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Hi Jennifer, maybe something like this.&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;Don't know for sure I understood your question. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;I'm not sure but are these table names?&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;'A' refers to PS_W_GPA_STAT_CHG&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;'D' refers to PS_W_PA_APPROVER&lt;/P&gt;&lt;P style="margin:0cm 0cm 0pt;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;Approval1:&lt;BR /&gt;&lt;B&gt;Load&lt;BR /&gt;&lt;/B&gt;"W_GPA_ID",&lt;BR /&gt;Max(ACTIONDTTM) &lt;B&gt;As&lt;/B&gt; "Approval 1 Date"&lt;BR /&gt;&lt;B&gt;Where&lt;/B&gt; "W_GPA_STATUS" = 'IHV'&lt;BR /&gt;&lt;B&gt;Group&lt;/B&gt; &lt;B&gt;by&lt;/B&gt; "W_GPA_ID";&lt;BR /&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;Select&lt;/B&gt; *&lt;BR /&gt;&lt;B&gt;From&lt;/B&gt; SYSADM."PS_W_GPA_STS_TBL";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Approval2:&lt;BR /&gt;&lt;B&gt;Load&lt;BR /&gt;&lt;/B&gt;"W_GPA_ID",&lt;BR /&gt;Max(ACTIONDTTM) &lt;B&gt;As&lt;/B&gt; "Approval 2 Date"&lt;BR /&gt;&lt;B&gt;Where&lt;/B&gt; "W_GPA_STATUS" = 'CO'&lt;BR /&gt;&lt;B&gt;Group&lt;/B&gt; &lt;B&gt;by&lt;/B&gt; "W_GPA_ID";&lt;BR /&gt;&lt;B&gt;SQL&lt;/B&gt; &lt;B&gt;Select&lt;/B&gt; *&lt;BR /&gt;&lt;B&gt;From&lt;/B&gt; SYSADM."PS_W_GPA_STS_TBL";&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2009 20:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-integrating-SQL-statement-into-QV/m-p/150630#M716341</guid>
      <dc:creator />
      <dc:date>2009-08-06T20:17:18Z</dc:date>
    </item>
  </channel>
</rss>

