Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: how to mask the phone number

$
0
0
Author: kumarinfy
Subject: how to mask the phone number
Posted: Mon Apr 03, 2017 5:23 pm (GMT 5.5)

Hi ,
could you please help me to prepare a select query to mask the phone no
my requirement is to mask the phone no except last 4 digits
please note that phone nos are not fixed length
Table column(PHONE_NO) having values like below
94758365494
0438278475859574
8428746857733774443

expected output should be like below
xxxxxxx5494
xxxxxxxxxxxx9574
xxxxxxxxxxxxxxx4443

Thanks in advance icon_smile.gif
_________________
kumarinfy


Viewing all articles
Browse latest Browse all 8500

Trending Articles