+ 2

Can you help me with code? SQL course 12.2

SELECT CONCAT (staff.firstname,' ',staff.lastname) AS fullname staff.salary*12+staff.expirience*500 AS total FROM staff ORDER BY total; Where is uncorrected?

24th Feb 2021, 4:22 PM
Антон Сухарев
3 Antworten
+ 4
You have to compute salary*12 + 500*experience. Also, in the query it's only mentioned as firstname & lastname, so while solving you include names as mentioned in table Corrected query while sorting: SELECT CONCAT (firstname, ' ', lastname) AS fullname, salary*12+500*experience AS total FROM staff ORDER by total;
24th Feb 2021, 4:43 PM
Shivani 📚✍
Shivani 📚✍ - avatar
+ 1
Thank you very much 😊
26th Feb 2021, 1:41 PM
Антон Сухарев
+ 1
Oh, thanks Shivani!🙏
23rd Jan 2022, 12:07 AM
Alexander Romanoff
Alexander Romanoff - avatar