Skip to content
ranjit.data
October 11, 2026 1 min read

The Ultimate SQL Cheatsheet

Advanced SQL window functions, CTEs, and performance tuning for analytical data warehouses.

1. Window Functions

Rankings and aggregates over partitions.

SELECT 
    user_id,
    amount,
    SUM(amount) OVER (PARTITION BY user_id ORDER BY transaction_date) as running_total,
    ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY transaction_date DESC) as recent_rank
FROM transactions

Activity Feed

GC Pressure in Spark: How to Find It, Read It, and Actually Fix It

Oct 12, 2026 · New Article

Welcome to the Field Notes

Oct 11, 2026 · New Article

The Real Math Behind PySpark Resource Sizing

Oct 11, 2026 · New Article

The Ultimate SQL Cheatsheet

Oct 11, 2026 · Cheatsheet Updated

Apache Airflow

Oct 11, 2026 · Cheatsheet Updated

View All Activity →