Hi,
is there a simpler way to search for a partcular string in different columns in a table. currently I have the following case statement. it's working fine but I was wondering if there is another way to do it?
case
when
tbl_Name.Col_1=1
or
tbl_Name.Col_2 like '%MyString%'
Or
tbl_Name.Col_3 like '%MyString%'
or
tbl_Name.Col_4 like '%MyString%'
or
tbl_Name.Col_5 like '%MyString%'
Then 1
else 0
End