You are on page 1of 1

CP 121: Introduction to Database Systems

LAB II

This lab activity is intended to explore the capability provided by Data Definition Language
(DDL) as part of SQL:

1. Review on Data types


2. Student will be able to apply the following SQL Commands as standard for defining
database schema.
i. CREATE
ii. USE
iii. DROP
iv. ALTER
3. Second will focus on Integrity Enhancement features provided by SQL server for
integrity control. Integrity control consist of constraints that when imposed will protect
the database.
 Required data
 Domain constraints
 Entity integrity
 Referential integrity
 General constraints
4. Schema to be used is the one that was provided in last lecture

Employee (SSN,fName, mName, Surname, Sex, DoB, Salary, Address,DeptNo,Mg_SSN)


Dependat (SSN, Fname,Mname, Surname, Sex, DoB, Relationship)
Department (DeptNo, DeptName)
DeptLocation(deptNo, Location)
Manage (SSN,DeptNo, startDate)
Workson (Pno,SSN, Nohours)
Project (PNo, Pname,budget, location,DeptNo)

You might also like