Menu
easyCIMB · text

Pull the branch code out of a reference number

Every transaction reference follows the pattern CIMB-<date>-<branch code>, e.g. CIMB-20260512-KLCC. For each transaction, return id, reference, and branch_code — the text after the last hyphen.

Schema

transactions
idINT
referenceTEXT

Example input

transactions
↑ Read the question

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.