Select a substring from a textfield
SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(transaction, '0', -1), '.', 1) FROM somedb.refunds;