Write a query that shows the last name (with the first letter in uppercase and the others in lowercase) and the length of the last name of all employees whose name starts with L, P or R. Label each column appropriately. Sort the results by the last names of the employees.
I already have everything except the part of the length this is the code I have:
SELECT UPPER(LEFT(apellido, 1)) + LOWER(SUBSTRING(apellido, 2, LEN(apellido))) as apellidos
FROM empleados
where apellido LIKE 'L%' OR
apellido LIKE 'P%' OR
apellido LIKE 'R%'
group by apellido
having count (*) >= 1
ORDER BY apellido