Relational key are device that relates one entity with another entity in relationship. A key consist of one or more attributes that can be identified in a row and enables us to link the table together in database for easier data access storage.
b) List and explain 4 type of relational keys.
i Candidate Key - an attribute or group of attribute that identify a unique row in a relation.
ii. Primary Key - any of the candidates that are selected to be the key or an attribute that uniquely identifies each row in a relational table.
iii. Foreign Key - an attribute in one table whose values must match the primary key in another table or whose value must not null.
iv. Composite Key - a primary key that consists of more than one attribute, especially in (M:N) relationship.
c) Based on table given below, answer all the following question:
i) What is the name for the above table?
BORROWER
ii)What is the primary key for above table?
BORROWER_ID
iii) What is data type for borrower's name, category, age and date of birth column?
- BORROWER NAME - text
- CATOGERY- text
- DATE OF BIRTH - date/time
- AGE - number
- Attributes - 7
- Records - 2
- Field size - the maximum number of character you can enter in the field.
- Input mask - a pattern for all data to be entered in this field.
- Default value - a value that automatically entered in this field for new records.

No comments:
Post a Comment