Hi all.
I have a field that displays a list from a select on a table like this:
SELECT cue_codigo, sc_concat (cue_codigo, ‘-’, cue_nombre)
FROM account WHERE cue_cia = ‘[v_customerid]’
The list of data field are shown as follows:
12345 - Initial Account base
12344 - Secondary Account base
22345 - Account valued third
But I just want to display the first 10 characters of the field named “cue_nombre” therefore change the select like this:
SELECT cue_codigo, sc_concat (cue_codigo, ‘-’, substr (cue_nombre, 1,10))
FROM account
WHERE cue_cia = ‘[v_customerid]’
And the list in the field is displayed only with the field “cue_codigo”:
12345
12344
22345
Why does not extract only the 10 characters of the name? how I can fix it?
Thanks for the help.
JG