我正在执行一个执行数据清理任务的项目,为此我使用DQS(SQL Server 实例)进行数据清理和转换。
我曾经有一个excel文件作为输入。
Address
-------
1201 Elm St Ste 4400
140 N Wright St
ABC Corp.
Tender house
现在我想在地址栏中的 DQS 中应用以下规则。
if value ends with "corp." then replace it with "corporation"
if value ends with "st" then replace it with "street".
所以输出应该如下:
Address_output
---------
1201 Elm St Ste 4400
140 N Wright street
ABC corporation
Tender house
注意:我可以通过使用基于术语的关系来替换,但是如果“结束于”条件该怎么办。感谢你的帮助。