Skip to content

Filtering before and after grouping

You want departments whose average salary exceeds 50000, counting only employees who are currently active.

Which is correct?