Sql Lag Function Examples In Math