Data Models: Entities, Attributes, and Relationships

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 is NOT a benefit of using data models in database design?

  • Increasing complexity (correct)
  • Decreasing errors
  • Saving costs
  • Reducing development time

In the context of data modeling, what does an 'entity' represent?

  • A real-world object distinguishable from others (correct)
  • A characteristic of an object
  • A restriction placed on data
  • An association among objects

What is the primary purpose of 'attributes' in a data model?

  • To describe the characteristics of an entity (correct)
  • To define relationships between entities
  • To enforce constraints on data
  • To represent real-world objects

Which type of relationship is exemplified by 'one lecturer teaches many students'?

<p>One-to-many (1:*) (D)</p>
Signup and view all the answers

What is the main function of a 'constraint' in the context of database design?

<p>To ensure data integrity (A)</p>
Signup and view all the answers

Which of the following best describes 'business rules' in the context of database systems?

<p>Brief, precise, and unambiguous descriptions of organizational policies (A)</p>
Signup and view all the answers

Why must business rules be rendered in writing?

<p>To ensure clarity, consistency, and accessibility (D)</p>
Signup and view all the answers

Which of the following is a common source for discovering business rules?

<p>Company managers and policy makers (C)</p>
Signup and view all the answers

In the context of database design, what role do verbs often play in discovering business rules?

<p>They translate into relationships among entities (C)</p>
Signup and view all the answers

How can relationships between entities be described in terms of directionality?

<p>Relationships are bi-directional, describing both directions of the association (D)</p>
Signup and view all the answers

Which database model was developed by E.F. Codd in 1970?

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

What was the initial reaction of IBM to Codd's relational model?

<p>Refusal to implement in order to preserve revenue from existing systems (C)</p>
Signup and view all the answers

What role did IBM customers play in the adoption of the relational model?

<p>They pressured IBM after Codd demonstrated its potential (D)</p>
Signup and view all the answers

Which language, initially called SEQUEL, became the standard for relational database management?

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

What term did Edgar Codd coin to describe online data analysis?

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

What factor contributed to the delayed implementation of the relational model despite its conceptual simplicity?

<p>Limited computer processing power (D)</p>
Signup and view all the answers

How is the relational model typically implemented in modern database systems?

<p>Through a Relational Database Management System (RDBMS) (D)</p>
Signup and view all the answers

What is a key advantage of RDBMS in relation to the relational model?

<p>It hides the complexities of the relational model from the user (A)</p>
Signup and view all the answers

In the context of relational databases, what does a 'table' represent?

<p>A matrix consisting of rows and columns (A)</p>
Signup and view all the answers

Which of the following is NOT a characteristic of a relational diagram?

<p>Specifies the physical storage location of data (A)</p>
Signup and view all the answers

What is SQL's primary role in the relational model?

<p>To specify what must be done without specifying how (D)</p>
Signup and view all the answers

Which of the following is the best definition of 'data abstraction'?

<p>The reduction of data to a simple presentation of content (C)</p>
Signup and view all the answers

According to ANSI standards, what does the framework for degrees of data abstraction define?

<p>Levels for data modeling (C)</p>
Signup and view all the answers

Which level of data abstraction represents the end users' view of the data environment?

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

Which of the following is an advantage of using the external model?

<p>It identifies specific data required to support business operations (A)</p>
Signup and view all the answers

Which data model provides a global view of the entire database?

<p>The Conceptual Model (C)</p>
Signup and view all the answers

Changes in hardware or DBMS software have no effect on which data model?

<p>The Conceptual Model (A)</p>
Signup and view all the answers

What action does the internal model perform in database management systems?

<p>Map the conceptual model to the DBMS (C)</p>
Signup and view all the answers

What is the main focus of the physical model in data abstraction?

<p>Describing how data are saved on storage media (D)</p>
Signup and view all the answers

What level of knowledge is required by database designers to implement the Physical Model?

<p>Detailed knowledge of the DBMS (A)</p>
Signup and view all the answers

What is the relationship between a department and courses, as illustrated in the in-class exercise?

<p>One department offers many courses, and a course is offered by only one department (B)</p>
Signup and view all the answers

What is the relationship is between a classroom and lectures conducted in that classroom, as shown in the in-class exercise?

<p>One classroom can be the location for many lectures, and each lecture takes place in one classroom (B)</p>
Signup and view all the answers

In the context of discovering business rules, what relationship exists between nouns and entities?

<p>Nouns generally translate into entities (D)</p>
Signup and view all the answers

In a database system, what does a one-to-one (1:1) relationship between entities imply?

<p>Each instance of one entity is related to one, and only one, instance of the other entity (C)</p>
Signup and view all the answers

In a hospital database, a patient receives medications ordered by a doctor, and patients receive multiple meds per day. What kind of relationship does PATIENT have to ORDER?

<p>One-to-many relationship (B)</p>
Signup and view all the answers

What does the Entity Relationship Diagram (ERD) seek to capture?

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

What could be a possible data constraint on the attribute called 'DP percentage'?

<p>It must be between 0 and 100 (B)</p>
Signup and view all the answers

What is a primary responsibility of an RDBMS (Relational Database Management System)?

<p>Simplifying the relational model for database users (A)</p>
Signup and view all the answers

Flashcards

What is a Data Model?

A relatively simple, often graphical, representation of complex real-world data structures.

What is an Entity?

A real-world object distinguishable from others, like a person, place, thing, or event.

What are Attributes?

Characteristics of entities, like people's names and ages.

What is a Relationship?

An association among entities, such as one lecturer to many students.

Signup and view all the flashcards

What is a Constraint?

A restriction placed on data to ensure data integrity like percentage must be between 0 and 100.

Signup and view all the flashcards

What are Business Rules?

Brief, precise, and unambiguous descriptions of policies, procedures, or principles within an organization.

Signup and view all the flashcards

Nouns and Verbs in Database Design?

Nouns often translate into entities, while verbs translate into relationships.

Signup and view all the flashcards

One-to-Many Relationship Example

One lecturer teaches many students; students are taught by one lecturer.

Signup and view all the flashcards

Another One-to-Many Example

A course is offered by one department; one department offers many course.

Signup and view all the flashcards

Classroom and Lectures Relationship

A classroom is used for many lectures and a lecture takes place in one classroom.

Signup and view all the flashcards

Relational Model

Developed by E.F. Codd in 1970, using tables to represent data and relationships.

Signup and view all the flashcards

Relational Database Management System (RDBMS)

Implemented using Relational Database Management System and hides the complexities of the relational model from the user

Signup and view all the flashcards

Codd's Relational Model Impact

E.F. Codd initiated the start of relational databases and IBM was initially reluctant to use relational model to preserve revenue from IMS/DB.

Signup and view all the flashcards

What is SQL?

A language called SQL was better than what was available before.

Signup and view all the flashcards

What are tables(relations)?

A matrix consisting of rows/column intersections. Related through common characterisitics.

Signup and view all the flashcards

What are relational diagrams?

A representation of entities attributes and the relationships between the entities in the relational database.

Signup and view all the flashcards

SQL Query Language

SQL allows the user to specify what must be done without specifying how it must be done

Signup and view all the flashcards

What does SQL involve?

A User interface, set of tables and a SQL Engine are all involved

Signup and view all the flashcards

What is Data Abstraction?

The reduction of data portion with the purpose of simple content presentation. In general the removing of necessary features from features.

Signup and view all the flashcards

American National Standards Institute (ANSI)

Based on degrees of data abstraction.

Signup and view all the flashcards

External Model

End user's view of the data enviroment

Signup and view all the flashcards

External Models Advantages

A Easy idenitifyer for spcific data, facilitates designers job and security constraints.

Signup and view all the flashcards

The Conceptual Model

Represents data in the entirity of the database.

Signup and view all the flashcards

Conceptual Model provides

Macro level view of the data enviroment.

Signup and view all the flashcards

Internal Model

As 'seen' by the DBMS, this has a specific interal schema that depicts a specific representation.

Signup and view all the flashcards

Physical Model

Operating at the lowest of abstraction, they are saved on storage media such as disks or tapes.

Signup and view all the flashcards

Study Notes

  • Data models are relatively simple representations, typically graphical, of complex real-world data structures.
  • Database design tools can be used to make useful drawings and automate the design process. Visio is an example of such a tool.
  • Data models save costs, reduce development time, and decrease errors.
  • Data models improve understanding of the business and enhance communication between role players on a project.

Data Model Basic Building Blocks

  • An entity is a real-world object distinguishable from others.
  • A specific person, place, thing, or event are all examples of entities.
  • Attributes are characteristics of entities. For example, people.
  • A relationship describes an association among entities.

Relationships

  • One-to-many (1:*) relationships involve one lecturer and many students.
  • Many-to-many (:) relationships involve many students studying many courses.
  • One-to-one (1:1) relationships involve one department having one Head of Department (HOD).
  • A constraint is a restriction placed on the data and ensures data integrity.
  • A student's DP percentage must be between 0 and 100.
  • Each class must have one and only one teacher per subject.

Business Rules

  • Business rules offer brief, precise, and unambiguous descriptions of policies, procedures, or principles within an organization.
  • Business rules apply to any organization that stores and uses data to generate information.
  • Business rules must be written down and kept up to date.
  • Business rules are sometimes external to the organization
  • Business rules must be easy to understand and widely disseminated.
  • Business rules describe data characteristics as viewed by the company.
  • Sources of business rules include company managers, policy makers, department managers, and written documentation.
  • Procedures, standards, and operations manuals within an organization may also provide business rules.
  • Business rules may be discovered through direct interviews with end users.
  • Nouns typically translate into entities while verbs translate into relationships among entities.
  • Example entities: Customer, Invoice, Course, Classroom
  • Example Relationships: Purchase, pay, generate invoice, attend course

Discovering Business Rules

  • Relationships are bi-directional, for example, a customer may generate many invoices, and an invoice is generated by only one customer.
  • A relationship is an association among entities: one-to-many (1:), many-to-many (:*), or one-to-one (1:1).

Evolution of Data Models

  • Hierarchical data models are one type.
  • Network data models are another type.
  • Relational data models exist.
  • Entity-relationship data models are also a type.
  • Object-oriented (OO) data models also exist.

The Relational Model

  • E.F. Codd developed the relational model in 1970.
  • Codd, born in 1923, was a mathematician, computer scientist, and Royal Air Force pilot in World War II.
  • He moved to New York to work for IBM as a mathematical programmer in 1948.
  • He worked for IBM in California until the 1980s.
  • EF Codd invented the relational model for database management, the basis for relational databases.
  • Codd received the Turing Award in 1981.
  • Codd published his paper "A Relational Model of Data for Large Shared Data Banks" in 1970.
  • Initially, IBM refused to implement the relational model to preserve revenue from IMS/DB.
  • Codd demonstrated the potential of the relational model to IBM customers, who then pressured IBM to include a System R subproject in its Future Systems project.
  • A language called SEQUEL was developed, later called SQL.
  • Codd fought to prevent misuse of the term "relational" by database vendors in the early 1980s.
  • Edgar Codd coined the OLAP term and wrote the twelve laws of online analytical processing.
  • "A relational model for Large Shared Databanks" was deemed impractical but ingenious in 1970.
  • There was not enough computer power to implement the relational model, but it was conceptually simple.
  • Microcomputers can now run sophisticated relational database software.
  • The relational model is implemented through a sophisticated Relational Database Management System (RDBMS).
  • The RDBMS can hide the complexities of the relational model from the user.
  • A table (relation) is a matrix of row/column intersections related through a shared entity characteristic.
  • A Relational Diagram shows the relational database's entities, attributes, and relationships
  • The relational model rose to prominence with the rise of its query language
  • Structured Query Language (SQL) enable users to specify results without specifying how steps
  • SQL-based relational database application involves the user interface, a set of tables stored in a database, and a SQL engine
  • Information in the model is represented using entity relationship models
  • Tables have a purely logic structure to hold data
  • How the data are stored is not relevant to the user or designer
  • You can think of tables as analogous to spreadsheets with rows and columns

Degrees of Data Abstraction

  • Data abstraction is the reduction of a portion of data for a simpler presentation of content by removing unneeded features.

  • Data abstraction helps classify different data models.

  • Many processes begin at a high level of abstraction and become more detailed.

  • Designing a usable database follows this process too.

  • The American National Standards Institute (ANSI) Standards Planning and Requirements Committee (SPARC) defined a framework for data modeling based on degrees of data abstraction in the 1970s.

  • The external model is the end users' view of the data environment, uses business rules, and operates at the highest level of abstraction.

  • Advantages of the external model include easy identification of data needed for business operations, facilitating design and implementation, and simplifying application program development.

  • The conceptual model represents a global view of data by the entire organization, and is independent of software and hardware.

  • It forms the basis for identifying main data objects and high-level descriptions, the entity relationship (ER) model is the most common here.

  • The conceptual model provides a easily understood high-level view of the data environment

  • It is not dependent on DBMS or hardware, changes to either will not affect the conceptual level.

  • The internal model maps the conceptual model to the DBMS, depicts a specific representation

  • The physical model works at the lowest level describing how data is saved and storage details.

  • Operating at the lowest level of data describes how dat is saved.

  • A hospital patient receives medications that have been ordered by a particular doctor.

  • Because the patient receives several medications per day, there is typically a one to many relationship between PATIENT and ORDER.

  • Each order includes several medications, creating a one to many (1:) relationship between ORDER AND MEDICATION.

  • Business rules for PATIENT, ORDER and MEDICATION must be identified.

  • The related ERD capturing these business rules much also be created.

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser