Window functions in SQL are powerful tools for performing calculations across a set of table rows that are somehow related to the current row. This section will focus on four window functions: LEAD, ...