<?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 Custom SQL in Qliksense in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Custom-SQL-in-Qliksense/m-p/1398250#M1236432</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 have connected to the hive and enabled i.e i have chosen the tables which i want to use. And i am trying to write an custom sql in load data editor but its throwing error like table not found. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query which&amp;nbsp; i used is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET FirstWeekDay=6;&lt;/P&gt;&lt;P&gt;SET BrokenWeeks=1;&lt;/P&gt;&lt;P&gt;SET ReferenceDay=0;&lt;/P&gt;&lt;P&gt;SET FirstMonthOfYear=1;&lt;/P&gt;&lt;P&gt;SET CollationLocale='en-US';&lt;/P&gt;&lt;P&gt;SET CreateSearchIndexOnReload=1;&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Apache_Hive_**.**.*.***';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BOEPI.BILL_SIZE,&lt;/P&gt;&lt;P&gt;DECODE(EPI.patient_type, '1', 'IP', '2', 'OP', '3', 'DC', '4', 'ED', EPI.patient_type ) PatientType,&lt;/P&gt;&lt;P&gt;EPI.ADMIT_STATUS,EPI.ADMISSION_DATETIME,EPI.DISCHARGE_DATETIME,NAT.code_description AS NATIONALITY&lt;/P&gt;&lt;P&gt;FROM FSCGKK.FDEPISODE EPI &lt;/P&gt;&lt;P&gt;INNER JOIN FSCGKK.BOEPISODEACCOUNT BOEPI ON EPI.episode_no=BOEPI.episode_no&lt;/P&gt;&lt;P&gt;INNER JOIN FSCGKK.FDPATIENT PAT ON EPI.fdpatient_id=PAT.fdpatient_id&lt;/P&gt;&lt;P&gt;INNER JOIN FSCGKK.FDPERSON PER ON PAT.fdperson_id=PER.fdperson_id&lt;/P&gt;&lt;P&gt;LEFT JOIN FSCGKK.VW_NAT NAT ON PER.nationality=NAT.code&lt;/P&gt;&lt;P&gt;WHERE NAT.code_description NOT LIKE '%MALAYSIA%' &lt;/P&gt;&lt;P&gt;AND EPI.ADMIT_STATUS IN ('4','IC');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;The following error occurred:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; background: rgba(255, 38, 38, 0.2);"&gt;Connector reply error: Unable to get column information for the fields that are used in the query: ERROR [42S02] [Qlik][ODBC Apache Hive Wire Protocol driver][Apache Hive]Error while compiling statement: FAILED: SemanticException [Error 10001]: Line 6:11 Table not found 'FDPATIENT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>Custom SQL in Qliksense</title>
      <link>https://community.qlik.com/t5/QlikView/Custom-SQL-in-Qliksense/m-p/1398250#M1236432</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 have connected to the hive and enabled i.e i have chosen the tables which i want to use. And i am trying to write an custom sql in load data editor but its throwing error like table not found. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query which&amp;nbsp; i used is as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET FirstWeekDay=6;&lt;/P&gt;&lt;P&gt;SET BrokenWeeks=1;&lt;/P&gt;&lt;P&gt;SET ReferenceDay=0;&lt;/P&gt;&lt;P&gt;SET FirstMonthOfYear=1;&lt;/P&gt;&lt;P&gt;SET CollationLocale='en-US';&lt;/P&gt;&lt;P&gt;SET CreateSearchIndexOnReload=1;&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIB CONNECT TO 'Apache_Hive_**.**.*.***';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT BOEPI.BILL_SIZE,&lt;/P&gt;&lt;P&gt;DECODE(EPI.patient_type, '1', 'IP', '2', 'OP', '3', 'DC', '4', 'ED', EPI.patient_type ) PatientType,&lt;/P&gt;&lt;P&gt;EPI.ADMIT_STATUS,EPI.ADMISSION_DATETIME,EPI.DISCHARGE_DATETIME,NAT.code_description AS NATIONALITY&lt;/P&gt;&lt;P&gt;FROM FSCGKK.FDEPISODE EPI &lt;/P&gt;&lt;P&gt;INNER JOIN FSCGKK.BOEPISODEACCOUNT BOEPI ON EPI.episode_no=BOEPI.episode_no&lt;/P&gt;&lt;P&gt;INNER JOIN FSCGKK.FDPATIENT PAT ON EPI.fdpatient_id=PAT.fdpatient_id&lt;/P&gt;&lt;P&gt;INNER JOIN FSCGKK.FDPERSON PER ON PAT.fdperson_id=PER.fdperson_id&lt;/P&gt;&lt;P&gt;LEFT JOIN FSCGKK.VW_NAT NAT ON PER.nationality=NAT.code&lt;/P&gt;&lt;P&gt;WHERE NAT.code_description NOT LIKE '%MALAYSIA%' &lt;/P&gt;&lt;P&gt;AND EPI.ADMIT_STATUS IN ('4','IC');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;The following error occurred:&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; background: rgba(255, 38, 38, 0.2);"&gt;Connector reply error: Unable to get column information for the fields that are used in the query: ERROR [42S02] [Qlik][ODBC Apache Hive Wire Protocol driver][Apache Hive]Error while compiling statement: FAILED: SemanticException [Error 10001]: Line 6:11 Table not found 'FDPATIENT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Custom-SQL-in-Qliksense/m-p/1398250#M1236432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
  </channel>
</rss>

