Of course Substring will help, ugly, but working:
CASE
WHEN x LIKE '%#%#%'
THEN SUBSTRING(SUBSTRING(x FROM POSITION('#' IN x) + 1)
FROM 1
FOR POSITION('#' IN SUBSTRING(x FROM POSITION('#' IN x) + 1)) - 1)
ENDDieter
↧