Maximum Consecutive Increasingly Ordered Substring In Sql