21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Right<br />

The Join (page 243) and Keep (page 244) prefixes can be preceded by the prefix right.<br />

If used before join it specifies that a right join should be used. The resulting table will only contain combinations<br />

of field values from the raw data tables with a full set of data from the second table.<br />

If used before keep, it specifies that the first raw data table should be reduced to its common intersection<br />

with the second table, before being stored in <strong>QlikView</strong>.<br />

right(join | keep)[(tablename )](loadstatement |selectstatement )<br />

Examples:<br />

Table1<br />

A B<br />

1 aa<br />

2 cc<br />

3 ee<br />

Table2<br />

A C<br />

1 xx<br />

4 yy<br />

QVTable<br />

QVTable:<br />

select * from table1;<br />

right join select * from table2;<br />

A B C<br />

1 aa xx<br />

4 - yy<br />

QVTab1<br />

QVTab1:<br />

select * from Table1;<br />

QVTab2:<br />

right keep select * from Table2;<br />

259

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!