I have a field in my table with Paths to some documents
Oracle TableSPROJECT_DIRECTORY_NUMBER[tt]
PSPROJDIR_DIRECTORY_NO
[blue]W:\Projects\[/blue]03026010A00
[blue]W:\Projects2\[/blue]03026010A00\SomethinElse
[blue]W:\Projects\[/blue]03026010345\Contracts
[blue]W:\Projects2\[/blue]6010GHT00\Build
[blue]W:\Projects\[/blue]03026010XYZ\SomeFolder
...
[/tt]
How can I get just the [blue]BLUE[/blue] part of that field once, ie:
[tt][blue]
W:\Projects\
W:\Projects2\[/blue]
[/tt]
I don't want to hard-code it, I just want to get the start of the path from my data.
[tt]
SELECT DISTINCT ??? PSPROJDIR_DIRECTORY_NO ???
FROM PSPROJECT_DIRECTORY_NUMBER
...
[/tt]
Have fun.
---- Andy