How many ways to write JSL code for sum of the first five rows of a column in a table?
Aug 18, 2018 6:05 AM(2341 views)
HLPE For example, take Big Class. JMP as an example. First, the "age" of column 2 is sorted downward, and then the sum of the values of the first five rows of column 2 is calculated.How many ways can this be written in JSL code?Thank you very much!
The following code is incorrect:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" ); col = Column( dt, 2 ); dt << Select Where( col > 14 & row()<=5 ); n = Col Sum(col,Selected());