Hello and thank you for reading my topic,
I'm currently a SQL student. I have been given a task and I am stuck.
Much appreciate any guidance
select
firstname,
lastname,
substr(firstname,1,4)||substr(lastname,1,2) as userid
from employees
(below is the result, my problem is I need the userid results to be in lower case. I'm aware of the select lower(userid ) where im stuck is how do Implement it into my query?
+-----------+----------+--------+
| FirstName | LastName | userid |
+-----------+----------+--------+
| Andrew | Adams | AndrAd |
| Nancy | Edwards | NancEd |
| Jane | Peacock | JanePe |
| Margaret | Park | MargPa |
| Steve | Johnson | StevJo |
| Michael | Mitchell | MichMi |
| Robert | King | RobeKi |
| Laura | Callahan | LaurCa |
+-----------+----------+--------+