I have a column containing symbols like EURUSD, USDINR etc. I need to create a new column based on the condition that if any of the first three or last three alphabets of the currency pairs belongs to this list
ref: ("INR", "BLR"....)
then I have to create a new column "result" and update it as "yes" if condition is satisfied otherwise "No".
Can anyone please help me with this. Thanks
Given
and
the straightforward query to add the described "result" column would be
but the following alternative will probably be faster: