Oracle Sql Select Max Value With Momentum