Database Systems (Ec-334) : Lab Report No 03
Database Systems (Ec-334) : Lab Report No 03
Submitted By:
Submitted to:
A primary key, also called a primary keyword, is a key in a relational database that is
unique for each record. It is a unique identifier, such as a driver license number,
telephone number (including area code), or vehicle identification number (VIN). A
relational database must always have one and only one primary key.
A foreign key is a column (or columns) that references a column (most often the primary
key) of another table. The purpose of the foreign key is to ensure referential integrity of
the data. In other words, only values that are supposed to appear in the database are
permitted. Foreign key establish the relationship between two tables.
Relationships are links that associate a field in one table with a field in another. An
example is a school database with two tables:
➢ Students
➢ Classes
The Students table holds students' names and addresses:
By linking the Student Name fields, you make sure that John in the Students table is the
same John listed in the Math Class table:
Students Math Class
Lab Tasks
1. Lab report Tasks:
A. Create and simulate the relationship schema of previous lab task.
B. The relationship schema given below contain one relationship degree incorrect. Identify
the problem and propose a solution.
Make tables:
Create Relationship:
Conclusion:
In this lab, we perform the given tasks in Microsoft Access. We learn to make Entity, Attributes,
Primary key, one to one relationships, one to many relationships, many to many relationships in
MS Access. It is very easy to learn and make ERD diagram in Microsoft Access.