I have a table with a column that is used to indicate a position. Positions start with A and could go up to AZ, just like in Excel. E.G.
Row | Position
----|---------
1 | A
1 | B
1 | C
: | :
1 | Z
1 | AA
1 | AB
2 | A
2 | B
Run Code Online (Sandbox Code Playgroud)
etc.
If I use select max(position) from table where row = 1 the result is always Z and not AB. …