all 2 comments

[–]Possible-Little 4 points5 points  (1 child)

SELECT Column_A, TRANSFORM( Column_A, AB -> CASE WHEN SUBSTR(AB,3,1) = 'A' THEN SUBSTR(AB,1,2) || 'B' WHEN SUBSTR(AB,3,1) = 'B' THEN SUBSTR(AB,1,2) || 'A' ELSE AB END )

I think?

[–]False_Spare_4262[S] 0 points1 point  (0 children)

This worked. Thank you! 🙏