I have a table with two columns of integers. I would like to select data from it (in some standard way) and add a new column by rule:
- if number on left is bigger, new column is 1
- if number on left is smaller, new column is -1
- if numbers are equal, new column is 0
Example:
16 | 15 | 1
20 | 28 |-1
11 | 11 | 0
28 | 14 | 1
...