ORACLE:-
In the table the First Names are as follows
Binda E
Reven O
Drew J
ANDAL J
WILL Lee
Chad Hardee
I want to select First names in the following format
Binda
Reven
Drew
ANDAL
WILL
Chad
I am using the following Query, but a having no luck
SELECT first_name, SUBSTR(first_name, REGEXP_INSTR('first_name','[^ ]+', 1, 1) ) FROM contact.user_names
Kindly suggest.
NVL(substr(first_name, 1, instr(first_name,’ ‘)), first_name)