0% found this document useful (0 votes)
8 views3 pages

CH 2

The document provides an overview of the Relational Data Model, detailing its structure, key terminologies, types of attributes, relationships, and constraints. It also explains the advantages of Relational Database Management Systems (RDBMS) and includes multiple-choice questions to test understanding of the material. Key concepts include tables, tuples, primary and foreign keys, and the importance of ACID properties for data integrity.

Uploaded by

eliasferhan1992
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)
8 views3 pages

CH 2

The document provides an overview of the Relational Data Model, detailing its structure, key terminologies, types of attributes, relationships, and constraints. It also explains the advantages of Relational Database Management Systems (RDBMS) and includes multiple-choice questions to test understanding of the material. Key concepts include tables, tuples, primary and foreign keys, and the importance of ACID properties for data integrity.

Uploaded by

eliasferhan1992
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/ 3

Ch-2 database

Here’s a summary of the key points from the lecture notes on the Relational Data
Model, along with multiple-choice questions to test understanding:

Summary of Key Points


1. Relational Data Model (RM)

o Represents data as a collection of relations (tables).


o Each row (tuple) represents a real-world entity or relationship.

2. Terminologies

o Tables: Composed of rows (records) and columns (attributes).


o Entities: Real-world objects (e.g., person, place).
o Attributes: Characteristics of entities (e.g., Student_Rollno, NAME).
o Tuple: A single row in a table.
o Degree of Relation: Number of entity types in a relationship.
o Cardinality: Total number of rows in a table.

3. Types of Attributes

o Simple vs. Composite: Simple attributes cannot be divided;


composite attributes can.
o Single-valued vs. Multi-valued: Single-valued attributes have one
value; multi-valued can have multiple.
o Derived vs. Stored: Derived attributes are computed from others;
stored attributes are physically present.

4. Relationships

o Degree of Relationship: Unary, binary, ternary, and n-nary


relationships.
o Cardinality of Relationship: One-to-one, one-to-many, many-to-one,
and many-to-many relationships.

5. Relational Constraints

o NOT NULL: Prevents null values.


o DEFAULT: Sets a default value for a column.
o Unique: Forbids duplicate values.
o Primary Key: Uniquely identifies a row; cannot be null.
o Foreign Key: Links to a primary key in another table.

6. Relational Integrity

o Domain Integrity: Values must be within allowable limits.


o Entity Integrity: Primary key attributes cannot be null.
o Referential Integrity: Foreign key must match a primary key or be
null.

7. Keys
o Super Key: Set of attributes that can uniquely identify a tuple.
o Candidate Key: Minimal super key; uniquely identifies tuples.
o Primary Key: Selected candidate key.
o Foreign Key: Links to a primary key in another table.

8. Relational DBMS (RDBMS)

o An advanced version of DBMS that uses tables to store data.


o Supports ACID properties for data consistency.
o Allows for database normalization.

9. Advantages of RDBMS

o Improved data security and access control.


o Efficient data updates and maintenance.
o Easy to understand and manage data in a structured format.

Multiple Choice Questions


1. What does the Relational Data Model represent?

o A) A collection of files
o B) A collection of relations (tables)
o C) A hierarchical structure
o D) A network of entities
Answer: B

2. What is a tuple in the context of a relational database?

o A) A column in a table
o B) A single row of a table
o C) A relationship between tables
o D) A type of attribute
Answer: B

3. Which of the following describes a primary key?

o A) A key that can be null


o B) A key that uniquely identifies a row and cannot be null
o C) A key that allows duplicate values
o D) A key that links to another table
Answer: B

4. What type of relationship involves tuples from three different


entities?

o A) Unary
o B) Binary
o C) Ternary
o D) n-nary
Answer: C
5. Which constraint prevents null values from being entered into a
column?

o A) UNIQUE
o B) DEFAULT
o C) NOT NULL
o D) FOREIGN KEY
Answer: C

6. What is the purpose of a foreign key?

o A) To uniquely identify a row in the same table


o B) To link to a primary key in another table
o C) To prevent duplicate values
o D) To set default values
Answer: B

7. Which of the following is NOT a type of attribute?

o A) Simple
o B) Composite
o C) Derived
o D) Abstract
Answer: D

8. What does ACID stand for in the context of RDBMS?

o A) Atomicity, Consistency, Isolation, Durability


o B) Accuracy, Consistency, Integrity, Durability
o C) Atomicity, Consistency, Integrity, Data
o D) None of the above
Answer: A

9. Which of the following describes a many-to-many relationship?

o A) One tuple is associated with only one other tuple.


o B) One tuple can be associated with many tuples, and vice versa.
o C) Many tuples are associated with one tuple.
o D) One tuple can be associated with multiple tuples, but not the
reverse.
Answer: B

10. What is a view in a relational database?

o A) A physical table stored in the database


o B) A virtual table derived from base relations
o C) A type of primary key
o D) A method for data backup
Answer: B

You might also like