Monthly Archives: December 2014

When the Performance of LAG Lags Behind

My favorite T-SQL windowing functions are LAG and LEAD. LAG and LEAD let you take a peek at another row and grab any column you need in your results. They are easy to use and perform great…except when they don’t. … Continue reading

Posted in T-SQL, T-SQL Window Functions | Leave a comment