Mastering Complex Data Aggregations and Window Functions for Analytics