SQL Data Analyst — Hard
Key points
- LEAD() function returns NULL by default when offset exceeds partition
- User-specified default value can be returned if provided
- This behavior allows for flexibility in handling out-of-range offsets
Ready to go further?
Related questions
