I have a variable, @RegionPeril retrieved from a cursor and I want to know if I can split this variable into two.
@RegionPeril can be the following (but not limited to):
WS EU
WS CA
EQ Worldwide
FL ROW
I want two variables: @Peril and @Region where @Peril = WS or @Peril = EQ (there can be more but it's the first two strings of the @RegionPeril variable) and @Region = EU or @Region = Worldwide (and so on...this is the 3rd string till the end of the @RegionPeril variable)
Is there any way to split this up??
Any help will be appreciated!