The Compare statement is used to compare fields and values for several items of the same type. The syntax is as follows:
jKQL> Compare Activity where ActivityID in ('first_activity_ID','second_activity_ID') show as comparetable
The following is an example:
Displaying differences
Use the expression, only diffs, to display only differences in the table. The syntax is as follows:
jKQL> Compare Event where EventID in ('first_event_ID','second_event_ID') show as comparetable
The following is an example:
Compare recent activities
You can compare events of recent activities, for example: compare events of last/latest/etc. N activities. Since each activity can have multiple events, all events with the same name are placed in the same group and are compared. The following is an example:
compare events of last 2 activities
Each group can be expanded/collapsed.