Professional Documents
Culture Documents
Lab1 Sec3
Lab1 Sec3
Consider a laboratory database that is used to keep track of labs and technicians. The database
has two tables only, one for technicians called TECHNICIAN and a second one for the labs and is
called LAB. The two tables are summarized below.
The primary key of TECHNICIAN is tno and that of LAB is lno. There are two foreign keys:
TECHNICIAN.tlno that references LAB and TECHNICIAN.tmgr that references TECHNICIAN. The
TECHNICIAN.tmgr holds tno of the manager for a technician.
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 LABORATORY.