Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

filtering first name and last name from fullname

user128573145 days ago

I have an Interactive Grid with fullname of employee (sometimes it is also mixed with login info) like this it is on view v_user_roles:

Smith Adam / smitha
Livingstone Mary

I tried to filter it in sql workshop→ sql commands:

SELECT substr(user_display_name, 1, instr(user_display_name, ' ') - 1) FROM v_user_roles;

SELECT LTRIM(REGEXP_REPLACE(REGEXP_REPLACE(user_display_name, '/.*$', ''), '^[^ ]+', '')) FROM v_user_roles;

It works there just fine. But then I tried to add appropriate column Nazwisko with Source → SQL expression I got message:

ORA-20999: Failed to parse SQL query! ORA-06550: line 3, column 23: ORA-00907: missing right parenthesis

What can I do to fix it?

Thank you

This post has been answered by InoL on Jan 14 2026
Jump to Answer
Comments
Post Details
Added 5 days ago
5 comments
56 views