i have data such as:
A
----
A Data, More Data
B Data, More Data
C Data, More, Data
D Data & More, Data
E Data
F More
G Data, Data
I'm trying to get the data selected as "everything before the first coma, or the first ampersand so the results would be:
A
-----------
A Data
B Data
C Data
D Data
E Data
F More
G Data
I try to use substr(A,1,posstr(',',A)-1), but that doesn't seem to work so nicely where there's no coma.
Any help would be most appreciated.
thanks!