Download to read offline






A substring is a string contained within another string. The document provides an example of generating a 6 digit customer code from a customer's forename, surname, and year of birth by taking the first 2 letters of their forename, last 2 digits of their year of birth, and first 2 letters of their surname, as shown with the example customer "john smith 1995" having the code "jo95sm".





