- 2
Stuck on the AS Keyword Practice Problem (Code Coach) - Please Help
The salary numbers (salary + bonus) listed in the expected output does not match what I calculated on paper. Can someone confirm for me that the expected salary output matches with what the question asked?
8 Respuestas
- 6
Nvm ! Fixed it
+ 5
hey its wrong this should work —
select CONCAT (firstname, ‘ ‘, lastname) as fullname; (salary*12)+(experience*500) as total from staff order by total;
+ 4
✅ Correct Answer
SELECT CONCAT
(firstname,' ',lastname) AS fullname, (salary*12)+(experience*500) AS total
FROM staff
ORDER BY total;
0
Here is a picture of the question. https://share.icloud.com/photos/09jQPzs1G1JHW25ZFfPy7hwgA
0
Here is my code.
SELECT CONCAT
(firstname,' '.lastname) AS fullname
SELECT
salary+(experience*500) AS total
FROM staff
ORDER BY total;
0
select CONCAT (firstname,' ',lastname) as fullname, (salary*12)+(experience*500) as total from staff order by total;
for anyone who struggled like me
- 1
LOL! Coding late at night leads to carelessness. I had forgotten to multiple salary by 12. Now everything works. 😂
- 2
Mine is not working and I did the same thing!