In this video, we take a look at 3 different use cases for the Lead and Lag SQL window functions. These are great to know for leetcode questions or SQL data analyst interview questions
Everything is coded within MSSQL and inside SQL Server Management Studio.
Code:
👨💻 Mentorships: https://ryanandmattdatascience.com/mentorship/
📧 Email:
[email protected]
🌐 Website & Blog: https://ryanandmattdatascience.com/
🖥️ Discord: https://discord.com/invite/F7dxbvHUhg
📚 *Practice SQL & Python Interview Questions: https://stratascratch.com/?via=ryan
📖 *SQL and Python Courses: https://datacamp.pxf.io/XYD7Qg
🍿 WATCH NEXT
SQL Tutorials Playlist: https://www.youtube.com/playlist?list=PLcQVY5V2UY4KvkR1ogGVh41xmj5ENnjLs
SQL With CTE:
https://youtu.be/MJDZBFKd680
SQL Pivots:
https://youtu.be/Lw9kRlNai6Y
SQL Merge:
https://youtu.be/6H4oAKA9bVo
OTHER SOCIALS:
Ryan’s LinkedIn: https://www.linkedin.com/in/ryan-p-nolan/
Matt’s LinkedIn: https://www.linkedin.com/in/matt-payne-ceo/
Twitter/X: https://x.com/RyanMattDS
Who is Ryan
Ryan is a Data Scientist at a fintech company, where he focuses on fraud prevention in underwriting and risk. Before that, he worked as a Data Analyst at a tax software company. He holds a degree in Electrical Engineering from UCF.
Who is Matt
Matt is the founder of Width.ai, an AI and Machine Learning agency. Before starting his own company, he was a Machine Learning Engineer at Capital One.
*This is an affiliate program. We receive a small portion of the final sale at no extra cost to you.