SQL exercises on employee Database: List the employee name, and job_name who are not working under a manager
SQL employee Database: Exercise-26 with Solution
[An editor is available at the bottom of the page to write and execute the scripts.]
26. Write a query in SQL to list the employee name, and job_name who are not working under a manager.
Sample table: employees
SELECT e.emp_name, e.job_name FROM employees e WHERE manager_id IS NULL;
emp_name | job_name --------------+-------------- KAYLING | PRESIDENT
Sample Database: employee
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
What is the difficulty level of this exercise?
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework