I have a set of data that i need to only capture part of it. I can use RIGHT(<FIELD>,< LENGTH>) or LEFT(<FIELD>,<L ENGTH>), but i will not work bec the length of the data varies. For example,
Description
EL PASO (OLD CODE)
DELAWARE(OLD CODE)
I only need to capture EL PASO and DELAWARE excluding (OLD CODE), but i'm stuck in trying to figure out the correct TSQL syntax. Your help is much appreciated.
Thanks.
Description
EL PASO (OLD CODE)
DELAWARE(OLD CODE)
I only need to capture EL PASO and DELAWARE excluding (OLD CODE), but i'm stuck in trying to figure out the correct TSQL syntax. Your help is much appreciated.
Thanks.
Comment