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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Force<br />

The force statement forces <strong>QlikView</strong> to interpret field values of subsequent Load (page 246) and Select<br />

(SQL) (page 262) statements as written with only upper case letters, with only lower case letters, as always<br />

capitalized or as they appear (mixed). This statement makes it possible to associate field values from tables<br />

made according to different conventions.<br />

The syntax is:<br />

force ( capitalization | case upper | case lower | case mixed )<br />

Examples:<br />

Force Capitalization;<br />

Force Case Upper;<br />

Force Case Lower;<br />

Force Case Mixed;<br />

If nothing is specified, force case mixed is assumed. The force statement is valid until a new force statement<br />

is made.<br />

The force statement has no effect in the access section: all field values loaded are case insensitive.<br />

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

Generic<br />

The unpacking and loading of a generic database can be done with a generic prefix. For a description of a<br />

generic database, see chapter Generic Database in section Evaluating the Loaded Data (page 375).<br />

The syntax is:<br />

generic( loadstatement | selectstatement )<br />

Examples:<br />

Generic Load * from abc.csv;<br />

Generic Select * from table1;<br />

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

Hierarchy<br />

The hierarchy keyword is a prefix to the Load (page 246) and Select (SQL) (page 262) statements. It is<br />

used to transform an adjacent nodes table to an expanded nodes table. Hence, the internal table must be an<br />

adjacent nodes table. The output of the hierarchy prefix is an expanded nodes table with all the needed<br />

additional fields.<br />

Adjacent nodes tables are tables where each record corresponds to a node and has a field that contains a reference<br />

to the parent node. In such a table the node is stored on one record only but can still have any<br />

number of children. The table may of course contain additional fields describing attributes for the nodes.<br />

In expanded nodes tables each level in the hierarchy is stored in a separate field. The levels in an expanded<br />

nodes table can easily be used e.g. in a pivot table or a in a tree structure. More details about adjacent nodes<br />

tables and expanded nodes tables can be found in the chapter Hierarchies in section Evaluating the Loaded<br />

Data (page 375).<br />

Normally the internal table has exactly one record per node and in such a case the output table will contain<br />

the same number of records. However, sometimes there are nodes with multiple parents, i.e. one node is represented<br />

by several records. If so, the output table may have more records than the internal table.<br />

236

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

Saved successfully!

Ooh no, something went wrong!