Hi
I wish to select from a column, the names of customers. These names are in the format: "customername-location".
how can i ignore everything after the "-" character and just select the customername section?
i have looked at the substr() function, but as the customername is variable in length, i cannot split the data by a constant number of characters.
Thanks in advance
Stephen
I wish to select from a column, the names of customers. These names are in the format: "customername-location".
how can i ignore everything after the "-" character and just select the customername section?
i have looked at the substr() function, but as the customername is variable in length, i cannot split the data by a constant number of characters.
Thanks in advance
Stephen