Compare Related Rows Using Lag and Lead

Share this video with your friends

Send Tweet

If you have a list of competitors and their finishing times, how do you determine how much time separated each competitor? Lag and lead allow you to compare rows in order -- for instance, comparing the 1st and 2nd place finishers and the 2nd and 3rd place finishers.

Mike
Mike
~ 8 years ago

Great example.