0% found this document useful (0 votes)
6 views2 pages

Relations Attribute Tuple Primary Key Foreign Key

The document outlines key database concepts including relations, attributes, tuples, primary keys, and foreign keys. It also describes metadata and its role in defining database structure, along with applications in criminal record and case management. Additionally, it presents a scenario for designing an Entity Relationship Diagram (ERD) for a community center's class registration system and explains the functions of Data Definition Language (DDL) and Data Manipulation Language (DML) within a Database Management System (DBMS).

Uploaded by

Venu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Relations Attribute Tuple Primary Key Foreign Key

The document outlines key database concepts including relations, attributes, tuples, primary keys, and foreign keys. It also describes metadata and its role in defining database structure, along with applications in criminal record and case management. Additionally, it presents a scenario for designing an Entity Relationship Diagram (ERD) for a community center's class registration system and explains the functions of Data Definition Language (DDL) and Data Manipulation Language (DML) within a Database Management System (DBMS).

Uploaded by

Venu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

a)

Relations: A table in a database, consisting of rows (records) and columns (attributes).

Attribute: A property or column in a table, representing data characteristics.

Tuple: A row in a table, containing values for each attribute.

Primary Key: A unique identifier for each row in a table.

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.

Case Management: To track investigations, evidence, and case progress.

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.
+------------------+ +------------------+ +------------------+

| Resident | | Registration | | Class |

+------------------+ +------------------+ +------------------+

| PK Resident_ID |<------->| PK Registration_ID |<------->| PK Class_ID |

| First_Name | | FK Resident_ID | | Class_Name |

| Last_Name | | FK Class_ID | | Instructor_Name |

| Address | | Registration_Date | | Schedule |

| Email | +------------------+ | Duration |

| 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).

You might also like