Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Please suggest
The Join and Keep prefixes can be preceded by the prefix left.
If used before join it specifies that a left join should be used. The resulting table will only contain combinations of field values from the raw data tables where the linking field values are represented in the first table.
If used before keep, it specifies that the second raw data table should be reduced to its common intersection with the first table, before being stored in QlikView.
left( join | keep) [ (tablename ) ](loadstatement |selectstatement )
Examples:
Table1 | |
A | B |
1 | aa |
2 | cc |
3 | ee |
Table2 | |
A | C |
1 | xx |
4 | yy |
QVTable:
select * from table1;
left join select * from table2;
QVTable | ||
A | B | C |
1 | aa | xx |
2 | cc | |
3 | ee |
QVTab1:
select * from Table1;
QVTab2:
left keep select * from Table2;
QVTab1 | |
A | B |
1 | aa |
2 | cc |
3 | ee |
QVTab2 | |
A | C |
1 | xx |
The two tables in the keep example are, of course, associated via A.
tab1:
Load * from file1.csv;
tab2:
load * from file2.csv;
.. .. ..
left keep (tab1) load * from file3.csv;
from Qlikview en espanol
Thankssssss everyone for quick response,
Special thanks to Grossi
If you get the desire result please close this thread.
how to close the thread , i m new to this blog
Choose the correct answer as correct and helpful as helpful answer.