A tickets.body value may contain an order number. A code is KM or km, a hyphen, four digits, another hyphen, and six digits, for example KM-2024-001234. For tickets containing such a code, return ticket_id and only the first matching code as order_code, preserving its original case. Omit rows with no matching code. Order the result by ticket_id ascending.
ticket_idorder_codeShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in