Problem:
Consider the scenario of the following ER diagram for a company database. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. If you cannot capture some constraints, explain why.
Employees (ssn, firstname, lastname, dno, dname, hours)
Dept (dno, dname, budget, mgr_ssn)
Dependents (ssn, name, date_of_birth)
Employee_phone (ssn, phone)