SQL Aggregate Functions: What You Need to Know