0

I am tryin to compare last name between SRC and target table, names are same but they might have extra spaces or character, how do i ignore that? Is this the best way to do the comparison ltrim(rtrim(upper(substr(PERSON_LAST_NAME,1,3))))=ltrim(rtrim(upper(substr(CUST_LAST_NAME,1,3))))

user803860
  • 299
  • 3
  • 4
  • 13

1 Answers1

0

You must before Trim and then substr string as follow

upper(substr(ltrim(rtrim(PERSON_LAST_NAME)),1,3))=upper(substr(ltrim(rtrim(CUST_LAST_NAME)),1,3))

hope this help

jackdev23
  • 116
  • 4