I have the following table:
Table: Test1
Text_Column
------------
2021AB022
1A012998F
ZAY
212P09990
1232124
PMP
Expected result is:
Only_text
----------
ZAY
PMP
Try:
SELECT Text_Column AS Only_text
FROM Test1
WHERE Text_Column REGEXP '(A,Z)'