Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Constraints exercise

Guidlines
Constraints: Primary key, foreign key, unique key, not-null, check.
Check constraint example greater than, less then, etc.

What should be the constraints in the following tables?

Q1.
VoterID database
citizen(VIN, Name, District, DateOfBirth, LicenseNo)

Q2.

Q3. employee_project(empId, projId, startDate, budget)


employee(employeeId, name, salary, yearsOfExperience, VIN, TIN)
project(id, name, manager_id)

Q4. student(id, name, VIN, phone_no, department_id)


department(id, name)

Q5. division(id, name)


district(id, name, division_id)

You might also like