Practical SQL Tricks Every Data Scientist Should Know
Contents# Introduction# Setting Up the Dataset# 1. Measuring Time Between Events with LAG()# 2. Comparing a Row to Other Rows in the Same Table with a Self-Join# 3. Selecting the Top Row per Group with ROW_NUMBER()# 4. Segmenting Customers by Spend with NTILE(n)# 5. Smoothing Noisy Data with a Rolling Window# 6. Aggregating Conditionally with FILTER# 7. Detecting Consecutive Activity Streaks with Window …
Practical SQL Tricks Every Data Scientist Should Know Read More »










