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.
6 lines
328 B
MySQL
6 lines
328 B
MySQL
5 years ago
|
/*10. Write a query in SQL to display the first name, last name, department number and name, for all employees who have or have
|
||
|
not any department.*/
|
||
|
SELECT E.first_name, E.last_name, E.department_id, D.department_name
|
||
|
FROM employees E
|
||
|
LEFT OUTER JOIN departments D
|
||
|
ON E.department_id = D.department_id;
|