Lab1 Sec2
Lab1 Sec2
Consider a university database that is used to keep track of departments and professors. The
database has two tables only, one for professors called PROFESSOR and a second one for the de-
partments and is called DEPARTMENT. The two tables are summarized below.
The primary key of PROFESSOR is pno and that of DEPARTMENT is dno. There are two foreign keys:
PROFESSOR.pdno that references DEPARTMENT and PROFESSOR.pmgr that references PROFESSOR.
The PROFESSOR.pmgr holds pno of the manager for a professor.
Perform each of the following tasks using MySQL. Create an SQL script to keep track of your
solutions and copy and paste the SQL statements you executed to perform each of the following
tasks in your SQL script. Moreover, copy and paste the output of your SQL statements (if any)
in a separate text file. Upload both your SQL script and the results text file on Moodle.
(a) Create the above database in MySQL and call it UNIVERSITY.