MS Access - Assignment
MS Access - Assignment
1. MS Access is better than MS Excel in storing non-numerical data. Explain primary key,
foreign key and two fundamental integrity rules used in relational database management
systems.
Access should be used to maintain data integrity in a format that can be accessed by multiple
users, whereas Excel is better suited for complex numerical data. Access is the best choice
when one must track and record data regularly, and then display, export, or print subsets of
that data. Access can be used to filter, sort and present a large set of data in presentable
manner which is not possible in the case of MS Excel.
Primary Key: A primary key, is a field in a relational database table that is distinctive for each
record. It is a unique identifier, such as an employer’s ID, roll number or Product ID. A
relational database must have only one primary key. Every row of data must have a primary
key value and none of the rows can be null.
Foreign Key: A foreign key is a column or columns of data in one table that refers to the
unique data values -- often the primary key data -- in another table. Foreign keys link together
two or more tables in a relational database.
Integrity Constraints:
Entity Integrity Constraints – It is used to ensure that the primary key cannot be null. If
primary Key is null, records cannot be identified.
Referential Integrity Constraint – Ensures that there must always exist a valid relationship
between two relational database tables.
2. Explain with examples, the difference between the following in a database:
a. List Box and Combo Box
b. Option Button and Toggle Button