09. Advanced Aggregate functions in SQL