Data Science & Analytics
Comparing Rows with LEAD and LAG
Learn to compare each order with neighboring rows, identify long purchase gaps, calculate month-over-month gross order-value growth, and analyze order-value trends within customer cohorts. By the end, you can combine CTEs with LAG and LEAD for time-based shop analysis.
SQL
4 lessons
12 practices
Less than 2 hours

Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal





