SQL exercises on hospital Database: Find the name of the nurse who are the head of their department
SQL hospital Database: Exercise-2 with Solution
2. Write a query in SQL to find the name of the nurse who are the head of their department.
Sample table: nurse
SELECT name AS "Name", POSITION AS "Position" FROM nurse WHERE POSITION='Head Nurse';
Name | Position ----------------+------------ Carla Espinosa | Head Nurse (1 row)
E R Diagram of Hospital Database:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a query in SQL to find all the information of the nurses who are yet to be registered.
Next: Write a query in SQL to obtain the name of the physicians who are the head of the department.
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