Extract the reference code from email subjects (repairs)
Each subject line contains a reference like (ref: KT-0042) somewhere in it. Pull out just the code.
- Level
- intermediate
- Time
- ~7 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Extract text between two delimiters whose position varies from row to row.
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
- Mail (table)
- TicketID: text
- Subject: text
Expected output columns
TicketID (text), Ref (text)