Higher Than 75 Marks

  • + 1 comment

    Ok. The SUBSTR function I used in this excercise has 3 parameters:

    1. String = corresponds to the name of a student.

    2. The starting position = length(Name)-2. For example, If I've got a name like 'Carlos', this name's length is 6. I substract 2 to define the starting position, I mean 4. In this case, I will start extracting from the 'L' character.

    3. How many characters am I going to extract?: In this case will be 3. And that's how I get the String to use it in the 'Order by' clause after the query.

    I hope this explanation works :)