Description
SQL · Advanced
Comparing neighboring rows
Use LAG to compare a row with an earlier row in its partition.