I have a string value 'Marquez, Gabriel Garcia. (A123456)'. I need to extract the values that appear in '(' and ')'. In order words, I need the result to say display 'A123456'
I have tried using a right function, but that did not create the desired result.
select right('Marquez, Gabriel Garcia. (A123456)' , 8)