programming-examples/sql/JoinHRDatabase/24. Write a query in SQL to display the full name (first and last name), and salary of those employees who working in any department located in London.sql

7 lines
375 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*24. Write a query in SQL to display the full name (first and last name), and salary of those employees who working in any
department located in London.*/
SELECT first_name || ' ' || last_name AS Employee_name, salary
FROM employees
JOIN departments USING (department_id)
JOIN locations USING (location_id)
WHERE city = 'London';