Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Left Outer join in Qliksense

I am successfull in loading individual tables data through script in Qlik Sense.

When I am trying to define left our join, i am getting error. I tried as below

LOAD name,

   `emp_no`;

SQL SELECT name,

      no as `emp_no`

ROM HIVE.`schemaname`.`emptable`

left outer join

LOAD `dept_no`

  `emp_no`

SQL SELECT dept_no,

      emplno as 'emp_no'

ROM HIVE.`schemaname`.`depttable` ;

But above qury got error, can anyone please help

10 Replies
arvind_patil
Partner - Specialist III
Partner - Specialist III

HI Nagamani,

Please Try This One:

LOAD name,

   `emp_no`;

SQL SELECT name,

      no as `emp_no`

ROM HIVE.`schemaname`.`emptable`

Left join

LOAD `dept_no`

  `emp_no`

SQL SELECT dept_no,

      emplno as 'emp_no'

ROM HIVE.`schemaname`.`depttable` ;

Thanks,

Arvind Patil

Anonymous
Not applicable
Author

HI Arvind,

this is also throughing error

Anonymous
Not applicable
Author

does the script work without left join?

Anonymous
Not applicable
Author

yes, it worked successfully in loading data into individual tables

now i am trying to load data with left join

Anonymous
Not applicable
Author

trying as below now:

leftjointable:

LOAD name,

   `emp_no`;

SQL SELECT name,

      no as `emp_no`

ROM HIVE.`schemaname`.`emptable`

Left join

LOAD `dept_no`

  `emp_no`

SQL SELECT dept_no,

      emplno as 'emp_no'

ROM HIVE.`schemaname`.`depttable` ;

Anonymous
Not applicable
Author

could you post a screenshot of your data model without lefr join?

Anonymous
Not applicable
Author

perhaps

FROM HIVE.`schemaname`.`emptable`;

Left join

Anonymous
Not applicable
Author

This is script ot load indiviual tables and this is successful

LOAD name,

   `emp_no`;

SQL SELECT name,

      no as `emp_no`

FROM HIVE.`schemaname`.`emptable`;

LOAD `dept_no`

  `emp_no`

SQL SELECT dept_no,

      emplno as 'emp_no'

FROM HIVE.`schemaname`.`depttable` ;

Anonymous
Not applicable
Author

thanks, this is running. It did not throughed out any error

but running from last 2 hours and still running, how can we move forward on this