Keep only the digits of phone numbers (dental)
Phone numbers were typed with spaces, brackets, dots, dashes and plus signs. Keep just the digits.
- Level
- beginner
- Time
- ~6 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Clean text by keeping an allowed set of characters instead of removing each unwanted one.
The scenario, sample data, step list, hints and solution open with Pro. Grading checks your query against hidden data as well as the visible sample, so a query that only fits the sample doesn't pass.
Input
- Contacts (table)
- CustomerID: text
- Phone: text
Expected output columns
CustomerID (text), Phone (text)