Hi,
In order to find out the occurrence of the '-' character in a string and display only the substring.I would either make use of the REGEXP or SPLIT function like below:
For example:
`select regexp('asgbf-4567-7836-6','[(.*)^-]','');`
Likewise,for regexp function you could modify the display of output based on using your own regexp.
`select SPLIT('-','asgbf-4567-7836-6')`
In case of Split function the output is provided as an array.
Furthermore,in order to identify the first position of a string or character I would also make use of the [Position](https://community.denodo.com/docs/html/browse/8.0/en/vdp/vql/functions/text_functions/text_functions#position) function.But this function is only used for identifying the position of first occurrence of a value.
If you still need further assistance and if you are a user with valid support access then you can raise a support case in Denodo Support Site so that our support team can help you.
Hope this helps.