You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
290 B
SQL

/*18. Write a query in SQL to display department name and the full name (first and last name) of the manager.*/
SELECT department_name, first_name || ' ' || last_name AS name_of_manager
FROM departments D
JOIN employees E
ON (D.manager_id=E.employee_id);