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.

During partial reload, any <strong>QlikView</strong> table previously named Tab1 is initially dropped. Thereafter new data<br />

is loaded from File1.csv and stored in Tab1.<br />

Tab1:<br />

Load a,b,c from File1.csv;<br />

Replace load a,b,c from File2.csv;<br />

During normal reload, the file File1.csv is first read into the <strong>QlikView</strong> table Tab1, but then immediately<br />

dropped and replaced by new data loaded from File2.csv. All data from File1.csv is lost.<br />

During partial reload, the entire <strong>QlikView</strong> table Tab1 is initially dropped. Thereafter it is replaced by new<br />

data loaded from File2.csv.<br />

Tab1:<br />

Load a,b,c from File1.csv;<br />

Replace only load a,b,c from File2.csv;<br />

During normal reload, data is loaded from File1.csv and stored in the <strong>QlikView</strong> table Tab1. File2.csv is disregarded.<br />

During partial reload, the entire <strong>QlikView</strong> table Tab1 is initially dropped. Thereafter it is replaced by new<br />

data loaded from File2.csv. All data from File1.csv is lost.<br />

Back to Script Statements and Keywords (page 219).<br />

Sample<br />

The sample prefix to a Load (page 246) or Select (SQL) (page 262) statement is used for loading a random<br />

sample of records from the data source.<br />

The syntax is:<br />

samplep ( loadstatement | selectstatement )<br />

where:<br />

p is an arbitrary expression which valuates to a number larger than 0 and lower or equal to 1. The number<br />

indicates the probability for a given record to be read.<br />

Examples:<br />

Sample 0.15 Select * from Longtable;<br />

Sample(0.15) Load * from Longtab.csv; (Note: The parenthesis is<br />

allowed but not required.)<br />

Back to Script Statements and Keywords (page 219).<br />

Section<br />

With the section statement, it is possible to define whether the subsequent Load (page 246) and Select<br />

(SQL) (page 262) statements should be considered as data or as a definition of the access rights. The syntax<br />

is:<br />

section(access | application)<br />

Examples:<br />

Section access;<br />

Section application;<br />

261

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

Saved successfully!

Ooh no, something went wrong!