A B
1 2
1 1
1 3
1 4
3 3
3 4
4 5
How can one use T-SQL to select only those rows that have column B value not greater than the next greater values in column A?
For example, if above table is the input, the output should be as follows;
A B
1 2
1 1
3 3
4 5
1 Answer