w3resource
SQL exercises

SQL exercises on hospital Database: Find all the information of the nurses who are yet to be registered

SQL hospital Database: Exercise-1 with Solution

1. Write a query in SQL to find all the information of the nurses who are yet to be registered.

Sample table: nurse


Sample Solution:

SELECT *
FROM nurse
WHERE registered='false';

Sample Output:

  employeeid |     name     | position | registered |    ssn
 ------------+--------------+----------+------------+-----------
         103 | Paul Flowers | Nurse    | f          | 333333330
 (1 row)

Practice Online


E R Diagram of Hospital Database:

E R Diagram: SQL Hospital Database.

Have another way to solve this solution? Contribute your code (and comments) through Disqus.

Previous: SQL Exercises on Hospital Database
Next: Write a query in SQL to find the name of the nurse who are the head of their department.

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming