I have some data which looks like so:
SourceOfBooking ---------------- Company1 (Foo) Company2 (Bar) Company3 (Foo1) Company4 (Foo2)
I am l
I think you've just put a wrong character
case when CHARINDEX('(', SourceOfBooking) > 0 then rtrim(left(SourceOfBooking, CHARINDEX('(', SourceOfBooking) - 1)) else SourceOfBooking end