I need to extract all characters, starting from the "SBN", all the way up to, but not including, the equal sign. The numbers after "SBN" can be of varying length, so I just need the beginning of the string up until the equal sign. What is the easiest way to accomplish this?
@Dave Ford, I did try something similar to this earlier (I should probably append my original comment), and then I tried your code, and I received the error "The statement was not executed because a numeric argument of a scalar function is out of range - SQLCODE 138" in both instances. Any ideas why I'm getting that? I isolated that piece of code from the query to try and figure it out, but I'm still getting that error using just what you posted.
PresidentLincoln
ASKER
Looks like my issue was caused by some NULLs. Got rid of those and it works well. Thanks!