1

I have data which comes up like this.


+--------------+--------------+-------------+------------+----------+--------------+-----------------+-----------------+-----------------+-----------------------+---------------------------+----------+
|     label    |     ent      |   custom1   |  account   | custom2  |     icp      |   created_by    |   approved_by   |    posted_by    |      date_posted      |        description        | group_1  |
+--------------+--------------+-------------+------------+----------+--------------+-----------------+-----------------+-----------------+-----------------------+---------------------------+----------+
| FB_FR_SE_1�  | 0418 - NORW  | D_ADJ_USD�  | 06D24CLS�  | ACC�     | [ICP None]�  | lbryan46@LDAP�  | lbryan46@LDAP�  | pprzyboc@LDAP�  | 7/5/2019 3:29:00 PM�  | Credit Loss Translation�  | FCEB�    |

i want to remove the tailing special character

Thanks in Advance.

Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563
Irthiza Khan
  • 23
  • 1
  • 7

1 Answers1

1

using regexp_replace:

select regexp_replace('FB_FR_SE_1�','�','');

Result:

FB_FR_SE_1
leftjoin
  • 36,950
  • 8
  • 57
  • 116