elsenorjose
Technical User
Hello all,
Using SQL Server 2005, I'm trying to extract only the string to the left of the second '/'.
John Smith /Data Analyst /Corporate /Analysts /North America /JSMITH
I just want to retrieve 'John Smith / Data Analyst'.
The length of the string will always vary, but I will always only want the data up to the 2nd '/'.
Is this possible using a simple CASE? I've seen functions to do this but I'd really like to avoid that.
Thank you.
Using SQL Server 2005, I'm trying to extract only the string to the left of the second '/'.
John Smith /Data Analyst /Corporate /Analysts /North America /JSMITH
I just want to retrieve 'John Smith / Data Analyst'.
The length of the string will always vary, but I will always only want the data up to the 2nd '/'.
Is this possible using a simple CASE? I've seen functions to do this but I'd really like to avoid that.
Thank you.