I’m using the following to find a city state in my database.
SELECT SUBSTRING(Location, PATINDEX( '%(%' , Location), LEN(Location))
FROM myTable
This gets me the following type of results.
(San Jose, CA)
(Los Angeles, CO)
(A Place)(Miami, FL)
...
I’m wanting to disregard the first set of parathesis in cases like the 3rd example.
I tried using REVERSE() but no luck with it, perhaps I was using it incorrectly or maybe that isn’t my solution. Can anyone help out? Thanks!
You can;
Remove the +'(‘ to get blanks for no parens.