Professional Documents
Culture Documents
CC 4057
CC 4057
Systems
Lab work – week 4
1. Create a database named tech_academy.
2. Using the dump file tech_academy.sql load the tables and data into the
database tech_academy.
3. The following tables are already present in the database
instructors
instructorID INT PRIMARY KEY,AUTO_INCREMENT
Fname VARCHAR(50)
Lname VARCHAR(50)
Designation VARCHAR(50)
courses
courseID INT PRIMARY KEY, AUTO_INCREMENT
Name VARCHAR(50)
startDate DATE
endDate DATE
instructor INT FOREIGN KEY
price INT
*The foreign key instructor references to the instructorID column in the
instructors table
students
studentID INT PRIMARY KEY, AUTO_INCREMENT
Fname VARCHAR(50)
Lname VARCHAR(50)
dateJoined DATE
address VARCHAR(50)