Wie macht man FIRST_VALUE() OVER im JMP-Skript?Wie macht man FIRST_VALUE() OVER im JMP-Skript?
WÄHLEN
FIRST_VALUE(..) ÜBER (PARTITION BY .. ORDER BY ..) AS ..
AUS ..
Datenzusammenführung und -bereinigungBetreff: Wie führt man FIRST_VALUE() OVER im JMP-Skript aus?Hier sind ein paar Möglichkeiten, eine ähnliche Auswahl zu treffen
names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
// Find the Name of the tallest person by sorting
sortDT = dt << sort(by(:height), order(descending));
value = sortDT:name[1];
close( sortDT, nosave );
show("Tallest by sorting",value);
// Tallest by selection
value = :Name[(dt<<GET rows="" where=""></GET>