I am looking for a query that selects a record from each group that meets a user-defined criterion. I can explain with the following illustrative table:
CREA