Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: rboccuzziTo remove the last record, you would use an agg node, and put a constant, like the number 1 in the GroupBy parameter. For the code, you would write:
emit *
where not lastInGroup
you could combine both this logic and the filter logic Larry gave you and do both with one Agg node, by writing:
emit *
where (not lastInGroup and not firstExec)
Cheers
Rich