Generic

The generic prefix unpacks a tall table, creating one field per attribute value. This is similar to pivoting a table, except that it results in a separate table per field created.

Syntax:  

Generic( loadstatement | selectstatement )

 

Tables loaded through a generic statement are not auto-concatenated.

Example:  

Table1:

Generic LOAD * INLINE;

[

Key, Attribute, Value

Bob, Jan, 100

Bob, Feb, 200

Bob, Mar, 300

Kate, Jan, 400

Kate, Feb, 500

Kate, Mar, 600

];

Result:

This will result in 3 tables:

Table1.Jan:

Key, Jan
Bob, 100
Kate, 400

Table1.Feb:

Key, Feb
Bob, 200
Kate, 500

Table1.Mar:

Key, Mar
Bob, 300
Kate, 600

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?