How do I select data up until the first space ?

Hi,
My query is : select name from v$archived_log ;

X:\ORADATA\ARCHIVELOGS\1_7141_678967666.ARC
(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=FTSDBGRD)(PORT=1521)))(CONNECT_DATA(SERVICE_NAME=guard_XPT.REGRESS.RDBMS.DEV.US.ORACLE.COM)(INSTANCE_NA
ME=facts)(SERVER=dedicated)))

I only want the log name X:\ORADATA\ARCHIVELOGS\1_7141_678967666.ARC  
not the tns connect string. Can I use substr and instr commands ? if so how ?
thanks.
partyonAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Todd MummertConnect With a Mentor Commented:

SELECT SUBSTR(name, 1, INSTR(name, ' ')-1) FROM dual;

0
All Courses

From novice to tech pro — start learning today.