I need a SQL query to get the substring between the second and third occurrence of the same character within a field. In this case the repeating character is a hat ^. As an example,
Party_Name Address
IBM IBM ^ IBM USA BR 1002 ^ 680 Langly Drive CA ^ NE ^ 0232232^ CC^
The ^ symbol appears multiple times in the address field, how do I retrieve "680 Langly Drive CA" only?
I have this so far
select Party_Name,
substring(Address, charindex('^', Address....)
from table_name
I am not sure what to do next