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.
11 lines
380 B
SQL
11 lines
380 B
SQL
/*Write a query in SQL to display the first and last name, and department code for all employees who work in the department
|
|
Marketing.
|
|
|
|
*/
|
|
|
|
SELECT first_name, last_name, department_id
|
|
FROM employees
|
|
WHERE department_id =
|
|
(SELECT department_id
|
|
FROM departments
|
|
WHERE department_name = 'Marketing'); |