Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

left join two loaded tables

hello I got 2 tables loaded as such

table1:

load field1, field2

sql select * from table1

table2:

load field1, field3

sql select * from table2

(the common field is field1)

what is the syntax of left join between the two loaded tables table1 and table2 ?

I can walk on water when it freezes
5 Replies
kaushalview
Partner - Creator II
Partner - Creator II

Hi,

table1:

load field1, field2

sql select * from table1

left join

table2:

load field1, field3

sql select * from table2

Regrads

Kaushal mehta

ali_hijazi
Partner - Master II
Partner - Master II
Author

does your solution means that the table 1 and table 2 remain available but the relation between them is left join?

so does this mean that all values of field1 will appear whether ther is data related in table 2 or not?

please help?

I can walk on water when it freezes
Not applicable

Yes, Kaushal is correct. All the values of Field1 from Table1 will appear regardless of the data related to table2.

Where ever table2 data is not available you`d get '-' Null() as value for respective columns.

- Sridhar

ali_hijazi
Partner - Master II
Partner - Master II
Author

the problem is that the data is very huge is I do a left join the system is killed

can't I display all values of table1 in the dimensions of a pivot table despite the fact there is related values in table 2 or not?

without doing left join

I can walk on water when it freezes
Not applicable

Yes, you can display. if you are not using left join between the table you`d get all the data from both the table.

i.e Field1 will have the data from both table1 and table2.

For example if you create a pivot table from only the table1 fields, you would get only the data from table1.

Linking the table in Qlikview is similar to outer join in SQL.

Hope this helps you.

- Sridhar