Relations Attribute Tuple Primary Key Foreign Key
Relations Attribute Tuple Primary Key Foreign Key
Foreign Key: An attribute that links to the primary key of another table, establishing relationships.
b)
Metadata describes the structure of the database, such as table names, columns, data types, and
relationships between tables.
c)
Criminal Record Management: To store and manage criminal histories, arrests, and convictions.
QUESTION 2
a) Scenario:
A community center hosts various classes throughout the year, such as yoga, pottery, and
dance. Each class can be attended by multiple residents of the community and each resident can
register for multiple classes bases on their interests.
Design an Entity Relationship Diagram(ERD) to represent this scenario, identifying the entities,
relationship cardinality and labeling all primary and foreign keys, clearly stating the entities they
belong to.
b) How do the Data Definition Language (DDL) and Data Manipulation language (DML) function
within DBMS? Give an example of operation for each.
+------------------+ +------------------+ +------------------+
| Phone_Number | +------------------+
+------------------+
B) DDL: Defines the database structure (e.g., creating tables, altering schema).
DML: Manipulates the data within the structure (e.g., inserting, updating, and retrieving
records).