T-SQL Programming Kathi Kellenberger in T-SQL Programming LAG in SQL Server: Performance vs Self-Join, CTE, APPLY, and Cursors Benchmarked Benchmarked comparison of the SQL Server LAG function against eight alternative techniques for including a column from a previous row:... 07 September 2021 13 min read