How do remove hyphens in Social Security Number?

Mike Kiser 1,536 Reputation points
2021-07-06T01:08:42.6+00:00

HI
@Nasreen Akter @ShaikMaheer-MSFT @MartinJaffer-MSFT @KranthiPakala-MSFT

I have a social Security number in a DB Table xxx-xxx-xxxx. I need to remove the hyphens in the SS# in a pipeline. Any suggestions?

Thanks
Mike Kiser

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,646 questions
0 comments No comments
{count} votes

Accepted answer
  1. Nandan Hegde 36,151 Reputation points MVP Volunteer Moderator
    2021-07-06T03:19:49.287+00:00

    Hey,

    There are multiple ways :
    Since the column is in DB, you can use Replace SQL function while querying the data as well.

    or

    you can use Replace function in dataflows or normal expressions:
    https://learn.microsoft.com/en-us/azure/data-factory/control-flow-expression-language-functions#replace

    https://learn.microsoft.com/en-us/azure/data-factory/data-flow-expression-functions

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.