Calculate a Pair of Minimum Values that Meet the Criteria within the Group — From SQL to SPL #12

Problem description & analysis:
A table stores events that occur for multiple accounts on multiple dates.Task: Now we need to find a pair of events that meet the criteria under each accou...