Entity Relationship Model (ERM)

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which of the following best describes the primary purpose of the Entity Relationship Model (ERM)?

  • To implement data security and access controls.
  • To optimize query performance in a relational database.
  • To illustrate relationships among entities at a conceptual level. (correct)
  • To define the physical storage structures of a database.

In an Entity Relationship Diagram (ERD), how is an entity typically represented?

  • Diamond
  • Rectangle (correct)
  • Oval
  • Circle

What term describes a specific instance or occurrence of an entity within the Entity Relationship Model (ERM)?

  • Entity set
  • Relationship
  • Entity Instance (correct)
  • Attribute

In ER modeling, what does 'connectivity' refer to?

<p>The type of relationship between entities. (C)</p> Signup and view all the answers

In the Chen notation for ER diagrams, how are relationships represented?

<p>Diamonds (D)</p> Signup and view all the answers

In the context of ER diagrams, what does cardinality express?

<p>The number of instances of one entity that can be related to another entity. (D)</p> Signup and view all the answers

What is the purpose of attributes in an Entity Relationship Model (ERM)?

<p>To describe the characteristics of an entity. (D)</p> Signup and view all the answers

In the original Chen notation, how are attributes represented in an ER diagram?

<p>Ovals (B)</p> Signup and view all the answers

In the Crow's Foot notation, how are mandatory or required attributes typically indicated?

<p>Boldface (B)</p> Signup and view all the answers

What is the purpose of underlining an attribute in an ER diagram?

<p>To indicate a primary key. (A)</p> Signup and view all the answers

What is the term for raw data in its original state, which may contain redundancies and other data anomalies?

<p>Unnormalized data (A)</p> Signup and view all the answers

What is a data anomaly in the context of database management?

<p>An undesirable consequence of data modification. (D)</p> Signup and view all the answers

Which of the following best describes the process of normalization in database design?

<p>Assigning attributes to entities to reduce data redundancies. (D)</p> Signup and view all the answers

Which of the following is a primary objective of normalization?

<p>To ensure each table represents a single subject. (D)</p> Signup and view all the answers

What is a key characteristic of a table that is in First Normal Form (1NF)?

<p>It contains no repeating groups and has a defined primary key. (C)</p> Signup and view all the answers

What is the defining characteristic of Second Normal Form (2NF)?

<p>All non-key attributes are fully dependent on the primary key and it must be in 1NF. (D)</p> Signup and view all the answers

What condition does Third Normal Form (3NF) satisfy beyond the requirements of 2NF?

<p>Elimination of transitive dependencies. (D)</p> Signup and view all the answers

What does Boyce-Codd Normal Form (BCNF) ensure?

<p>Every determinant is a candidate key. (B)</p> Signup and view all the answers

What additional condition does Fourth Normal Form (4NF) address beyond the requirements of 3NF?

<p>Multivalued Dependencies (D)</p> Signup and view all the answers

Up to which normal form is considered the highest level necessary for most applications?

<p>Third Normal Form (3NF) (D)</p> Signup and view all the answers

In the context of database normalization, what is a 'nonprime attribute'?

<p>An attribute that is not part of the primary key. (D)</p> Signup and view all the answers

Which of the following is a characteristic of a well-normalized database table?

<p>Each row/column intersection contains only one value. (B)</p> Signup and view all the answers

Consider a database table where an employee's name can determine their department. Which normal form is violated if this dependency exists and the department is not determined by the primary key?

<p>3NF (A)</p> Signup and view all the answers

In a database table, a student can have multiple majors. If the table is not in 4NF, what kind of dependency exists?

<p>Multivalued dependency (D)</p> Signup and view all the answers

Considering the tables 'Advisers', 'Subjects', 'Students', and 'StudentAdvisers', what is the primary key of the 'StudentAdvisers' table?

<p>A composite key of ADV_ID, SUBJ_CODE, and STU_NUM (B)</p> Signup and view all the answers

Why is it important for each table to represent a single subject in a normalized database?

<p>To simplify data modification and maintain data consistency. (A)</p> Signup and view all the answers

Which normal form aims to remove redundancy that arises because of transitive functional dependencies?

<p>3NF (D)</p> Signup and view all the answers

What type of database anomaly is most directly addressed by normalizing a database from 1NF to 2NF?

<p>Partial dependency anomaly (C)</p> Signup and view all the answers

Which normal form explicitly requires that every determinant in a table be a candidate key?

<p>BCNF (C)</p> Signup and view all the answers

If a table is in 3NF but not in BCNF, what type of situation most likely exists?

<p>The table has overlapping candidate keys. (B)</p> Signup and view all the answers

Consider a relation EMPLOYEE(empID, projectName, salary). An employee can work on multiple projects. Is this relation in 3NF? If not, why?

<p>No, because there is a multi-valued dependency between empID and projectName (D)</p> Signup and view all the answers

What problem arises if a database table isn't normalized and contains redundant data?

<p>Data anomalies during updates, insertions, or deletions. (D)</p> Signup and view all the answers

Why is 3NF often considered a sufficient level of normalization for many practical database applications?

<p>It provides a good balance between data integrity and design complexity. (C)</p> Signup and view all the answers

What is the significance of a 'determinant' in the context of database normalization?

<p>An attribute or set of attributes that determines another attribute. (C)</p> Signup and view all the answers

In database design, what does the term 'functional dependency' mean?

<p>The value of one attribute is determined by the value of another attribute. (D)</p> Signup and view all the answers

Consider a table ORDER (orderID, customerID, customerName, productID, productName). If customerID determines customerName and productID determines productName, what normal form does this violate?

<p>2NF (D)</p> Signup and view all the answers

Consider a table PROJECT(projectID, employeeID, taskID, hoursWorked). If an employee can work on multiple tasks within a project, what is the most likely primary key?

<p>A composite key of projectID, employeeID, and taskID (B)</p> Signup and view all the answers

What is the primary goal of normalizing a database schema?

<p>Reduce data redundancy and improve data integrity (C)</p> Signup and view all the answers

Which of the following normal forms deals with the issue of transitive dependencies?

<p>3NF (D)</p> Signup and view all the answers

Flashcards

Entity Relationship Model (ERM)

A data model describing relationships among entities at a conceptual level, using ER diagrams.

Entity Relationship Diagram (ERD)

A diagram visually representing an ER model's entities, attributes, and relationships.

Entity (in ERD)

A rectangle representing a real-world object or concept in an ERD.

Entity Instance

A single row in a relational table, representing a specific instance of an entity.

Signup and view all the flashcards

Entity Set

A collection of similar entities.

Signup and view all the flashcards

Relationship (in ERD)

Represented by a line in ERD. Describes associations among data.

Signup and view all the flashcards

Connectivity (in ERD)

The type of relationship between entities. Represented by a line in an ERD.

Signup and view all the flashcards

Attributes

Characteristics that describe a partiticular characteristics of the entity.

Signup and view all the flashcards

Unnormalized Data

Raw, unorganized data that may contain redundancies and anomalies.

Signup and view all the flashcards

Data anomaly

An undesirable result that arises during data modification

Signup and view all the flashcards

Normalization

The process of organizing data to minimize redundancy and improve integrity

Signup and view all the flashcards

Atomic Attribute

Each intersection contains only one value.

Signup and view all the flashcards

First Normal Form (1NF)

There are no repeating groups, and the primary key is identified.

Signup and view all the flashcards

Second Normal Form (2NF)

All columns depend on the table's primary key.

Signup and view all the flashcards

Third Normal Form (3NF)

No non-key attributes determine another non-key attribute.

Signup and view all the flashcards

Study Notes

  • Entity Relationship Model (ERM) is a data model that uses ER diagrams to describe relationships among entities at the conceptual level
  • Entity Relationship Diagram (ERD) depicts an entity relationship model's entities, attributes, and relations
  • An entity is represented in an ERD by a rectangle, also known as an entity box, where the entity's name (a noun) is written in the center in capital letters and singular form
  • Each row in the relational table is known as an entity instance or entity occurrence in the ER model
  • A collection of similar entities is known as an entity set
  • Relationships describe associations among data
  • Connectivity is the type of relationship between entities represented by a line in an ERD
  • The relationship name is usually an active or passive verb

ER Model Notations

  • Chen notation represents relationships through a diamond connected to the related entities through a line, with the relationship name inside the diamond
  • Crow's Foot notation connects entities by lines, and symbols at either end describe the cardinality of the relationship between entities

Attributes

  • Each entity has a set of attributes describing particular characteristics
  • In Chen notation, attributes are represented by ovals connected to the entity rectangle, each containing the attribute name, and the entity identifier is mapped as the table's primary key and underlined
  • In Crow's Foot notation, attributes are written in the attribute box; required attributes are in boldface, and PK/FK denote primary/foreign keys

Normalization

  • Unnormalized data is raw and may contain redundant/multivalued data/data anomalies, where a data anomaly is an undesirable consequence of a data modification
  • Normalization assigns attributes to entities to reduce or eliminate data redundancies; the objectives are:
    • Each table/relation represents a single subject
    • Each row/column intersection contains only one value
    • No data item is unnecessarily stored in more than one table
    • Nonprime attributes depend on the primary key
    • Each table has no insertion, update, or deletion anomalies
  • Each rule in database normalization is called a normal form

Common Normal Forms

  • First normal form (1NF): No repeating groups, and the primary key is identified
  • Second normal form (2NF): 1NF plus all columns depend on the table's primary key
  • Third normal form (3NF): 2NF plus no non-key attributes determined by another non-key attribute
  • Boyce-Codd normal form (BCNF): Every determinant is a candidate key (special case of 3NF)
  • Fourth normal form (4NF): 3NF and no independent multivalued dependencies
  • 3NF is considered the highest level necessary for most applications

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Database Conceptual Data Model Example
18 questions
Entity Relationship Data Model
10 questions
Entity-Relationship Model Quiz
42 questions
Entity-Relationship Model Enhancements
13 questions
Use Quizgecko on...
Browser
Browser