Тёмный

Supercharge Your SQL Skills with Lead & Lag Functions 

Anthony Smoak
Подписаться 23 тыс.
Просмотров 971
50% 1

Be a super hero and learn to LEAD (and LAG) in SQL. I start out showing you the problem statement in #Excel and then we take it over to SQL Server to script common table expressions using window functions in order to solve a business question on time intervals.
#sqlserver #analytics #tsql #groupby #dataanalyst #data
0:00 INTRO
1:08 DATA OVERVIEW IN EXCEL
4:15 GET STRAIGHT TO THE POINT: LAG FUNCTION
4:38 MIGOS
6:09 RESULTS WITH PARTITION BY
6:09 RESULTS WITHOUT PARTITION BY
8:52 LEAD FUNCTION
9:57 BONUS CONTENT: SQL SCRIPT USING CTEs
Learn GROUP BY vs PARTITION BY in SQL
• Learn GROUP BY vs PART...
★☆★ FOLLOW ME BELOW: ★☆★
bit.ly/m/anthonysmoak
☕☕ If my channel has helped you, consider buying me a coffee! Thanks & Cheers! ☕☕
www.buymeacoffee.com/anthonys...
★☆★ Support this Channel: ★☆★
Merch ► shop.spreadshirt.com/AnthonySmoak
#Excel #SQLServer #analytics #data #dataanalyst #education #onlinelearning

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@uc7602
@uc7602 10 месяцев назад
Great video! Enjoyed watching you use of Excel formulas to help code and validate the LAG(), LEAD() and AVG() functions using SQL. Thanks Anthony!
@AnthonySmoak
@AnthonySmoak 10 месяцев назад
Thank you! I'm glad you like the Excel piece I put in the video to explain the concept.
@ifortniteclipz9946
@ifortniteclipz9946 11 месяцев назад
Hello, I’m wondering if you have or can do a tutorial on creating a parameter table such as start datetime & end datetime and how to incorporate this so a user can input the date and use it to refresh the table being pulled from a database?
@AnthonySmoak
@AnthonySmoak 11 месяцев назад
Somewhat similar: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7xsL_gHf9Ws.htmlfeature=shared
Далее
Combine Multiple Rows into One Cell Using SQL
14:07
Просмотров 10 тыс.
Викторина от ПАПЫ 🆘 | WICSUR #shorts
00:56
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
Advanced Excel Pivot Tables (Masterclass)
30:22
Market Basket Analysis using SQL
30:51
Просмотров 804
WINDOW FUNCTIONS | Advanced SQL
25:47
Просмотров 16 тыс.
Parse and Query JSON Data with SQL
8:24
Просмотров 3,2 тыс.