From the following tables, write a SQL query to find those employees who work under a manager based in ‘US’. Return first name, last name
- برمجة سي كيو ال sql
- 2021-09-02
- mhanasmh00489829403
الأجوبة
SELECT first_name,last_name FROM employees
WHERE manager_id IN
(SELECT employee_id
FROM employees
WHERE department_id IN
(SELECT department_id
FROM departments
WHERE location_id IN
(SELECT location_id
FROM locations
WHERE country_id='US')));
Sample Output:
first_name last_name Neena Kochhar Lex De Haan Alexander Hunold Bruce Ernst David Austin Valli Pataballa Diana Lorentz Nancy Greenberg Daniel Faviet John Chen Ismael Sciarra Jose Manuel Urman Luis Popp Den Raphaely Alexander Khoo Shelli Baida Sigal Tobias Guy Himuro Karen Colmenares Matthew Weiss Adam Fripp Payam Kaufling Shanta Vollman Kevin Mourgos Julia Nayer Irene Mikkilineni James Landry Steven Markle Laura Bissot Mozhe Atkinson James Marlow TJ Olson Jason Mallin Michael Rogers Ki Gee Hazel Philtanker Renske Ladwig Stephen Stiles John Seo Joshua Patel Trenna Rajs Curtis Davies Randall Matos Peter Vargas John Russell Karen Partners Alberto Errazuriz Gerald Cambrault Eleni Zlotkey Winston Taylor Jean Fleaur Martha Sullivan Girard Geoni Nandita Sarchand Alexis Bull Julia Dellinger Anthony Cabrio Kelly Chung Jennifer Dilly Timothy Gates Randall Perkins Sarah Bell Britney Everett Samuel McCain Vance Jones Alana Walsh Kevin Feeney Donald OConnell Douglas Grant Jennifer Whalen Michael Hartstein Susan Mavris Hermann Baer Shelley Higgins William Gietz
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال