Wha's your TD release?
In TD14 there's a built-in INSTR to find the #2 dot for the SUBSTRING or REGEXP_SUBSTR, before that you might check what UDFs have been installed.
Otherwise it's ugly nesting of POSITIONTSUBSTRING:
SUBSTRING(x FROM 1 FOR POSITION('.' IN x) + POSITION('.' IN SUBSTRING(x FROM POSITION('.' IN x)+1)) -1)
Wha's your TD release?
In TD14 there's a built-in INSTR to find the #2 dot for the SUBSTRING or REGEXP_SUBSTR, before that you might check what UDFs have been installed.
Otherwise it's ugly nesting of POSITIONTSUBSTRING:
Dieter