You are on page 1of 4

MUHAMMAD FAHAD

CMS: 356324
Submitted to: Waqas Ahmed
23-2-2021

DATABASE SYSTEMS

LAB 10
TASK
Entities
 Employee

STEPS
o First we CREATE the table “EMPLOYEE”
o We add the attributes as required
o We use Computed Columns to add a constraint to check whether the employee
is an OFFFICER, LABOURER, or a STAFF

 Department

STEPS
o Then we CREATE the table “DEPARTMENT”
o We add the attributes as required
o We reference deptD to deptID from Employee
 Files

STEPS
o First we CREATE the table “File”
o We add the attributes as required
o We reference fileID to empFILE from Employee
o fileSIZE is the file size of the file
o fileTYPE is the type of file
o fileCREATED tells the date file was create
o fileMODIFIED tells the modified date of the file

 Record

STEPS
o First we CREATE the table “Record”
o We add the attributes as required
o We reference recID to empRECORD from Employee
ER DIAGRAM

=====================================================================================

THANK YOU

You might also like