I have a problem where I need to select all top level file paths from a string value in SQLSo I have a column "Locations"Example Data:X:\folder\anotherfolder\X:\folder\yet another folder\X:\foldername\another folder\X:\foldername\yet another folder\I'd want to return only:X:\folder\X:\foldername\So I am guessing I need to somehow parse the sting and capture anything before the second '\'?Any help would be greatly appreciated!
↧