j()

Description:

Join multiple sequences according to positions and return a pure table sequence.

Syntax:

j(Ai:Fi,…)

Note:

The function joins multiple sequences Ai,… according to positions and generates a pure table sequence consisting of Fi,… fields, which are assigned corresponding members in Ai – that is, Fi references records in the original sequence Ai.

 

Note: The number of members (records) each of sequences Ai,… should be same.

Parameter:

Ai

A sequence

Fi

Field name(s) in the result table sequence

Return value:

Pure table sequence

Example:

 

A

 

1

=demo.query("select *  from SCORES  where CLASS = 'Class one ' ")

Return a table sequence:

2

=demo.query("select *  from SCORES  where CLASS = 'Class two ' ")

Return a table sequence:

3

=j(A1:ClassOne,A2:ClassTwo)

Join table sequences A1 and A2 according to record positions and return a pure table sequence consisting of ClassOne field and ClassTwo field.

4

=ifpure(A3)

Judge whether A3 is a pure table sequence or not and return true.

Related function:

join()