Masked Phone Numbers
EasyDescription
The support screen hides most of each phone number. For each customer, show:
customer_idcity_code: the first three letters of the city in capitals, such asDELfor Delhimasked_phone: the first 2 digits, then six asterisks, then the last 2 digits, such as98******01
A customer without a phone number must show NULL, not asterisks.
End your query with ORDER BY customer_id.
Tables
| customers |
|---|
| customer_id (PK) |
| full_name |
| phone |
| city |