pseud0phreak
IS-IT--Management
Hi all,
i am trying to extract the folder path from the files "path" column in my table. using sql on oracle 10g
so the format of the path is \\network\folder1\folder2\folder3\filename.txt
so bascially i want just the \\network\foldera\folderb\folderc
part of it.
so cut off everything after the last "\"
pretty much every folder name is different so no other pattern matching available.
i have something very close to what i need in excel
=LEFT(A2, SEARCH("\",A2)) but this only finds the first "\" which gets me no where since the first character is a \.
any ideas?
Thanks
i am trying to extract the folder path from the files "path" column in my table. using sql on oracle 10g
so the format of the path is \\network\folder1\folder2\folder3\filename.txt
so bascially i want just the \\network\foldera\folderb\folderc
part of it.
so cut off everything after the last "\"
pretty much every folder name is different so no other pattern matching available.
i have something very close to what i need in excel
=LEFT(A2, SEARCH("\",A2)) but this only finds the first "\" which gets me no where since the first character is a \.
any ideas?
Thanks