Mastering SQL Aggregates: Combining Functions for Deeper Insights