(a) Explain the following database management terms; (i) entities (ii) attributes (iii) relationships (b)(i) Define cardinality in database management. (ii) Mention three cardinality relationships database management.
Explanation
(a)(i) Entities;- An entity is an object in the system that we want to model and store information about. Entities are usually recognizable concepts either concrete or abstract such as persons, places. things or events which have relevance to the database. (ii) Attribute (Characteristics); It is a database component such as a table. It is also seen as a database field, they describe the instances in the row of a database. OR It is a column or field in a database table. (iii) Relationships; A relationship in the context of database is a situation that exists between two relational database tables when one table has a foreign key that references the primary key to the other table. A relationship allows relational database to split and store data in different tables, while linking disparate data items. (b((i) Cardinality; This refers to the uniqueness of data values contained in a column. High cardinality means that the column contains a large percentage of totally unique values. Low cardinality means that the column contains alot of "repeals" in its data range. (ii) Three cardinality relationships in database management; I. One-to one (1:1) relationship II. One-to-many (1-M) relationship III. Many-to-many (M:M) relationship