SQL
Advanced
🎯RECURSIVE)
Recursive CTEs (WITH
Model hierarchies, dependencies, and sequential
data flows
Vishnu Vardhan
Advanced Window
Functions
Analyze behavior across time — retention,
ranking, and distributions.
NTILE(), PERCENT_RANK(), LAG(), LEAD(), SUM()
OVER, AVG() OVER
Vishnu Vardhan
Pivoting & Unpivoting
Reshape rows ↔ columns for flexible
reporting.
Vishnu Vardhan
Dynamic SQL
Buildparameterized, reusable logic
for data pipelines and reporting.
Vishnu Vardhan
Lateral Joins / CROSS
APPLY
Perform subquery lookups that depend on
each row dynamically.
Vishnu Vardhan
Query Optimization
Habits for scalable SQL:
[Link] functions on indexed columns.
[Link] filters down early (WHERE before
WINDOW).
[Link] EXPLAIN / QUERY PLAN regularly.
[Link] with realistic data volumes.
[Link] subqueries or create temp tables for
heavy joins.
Vishnu Vardhan
Data Validation &
Integrity Checks
Detect anomalies, duplicates, and missing
data at the SQL layer.
Vishnu Vardhan
Follow to be part of MY
becoming Analytics
engineer journey
Vishnu Vardhan