Data Model Fundamentals

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

Match the following data modeling components with their descriptions:

Entity = Anything about which data are collected, such as a person, place, thing, or event. Attribute = A characteristic of an entity, such as a property or descriptor. Relationship = An association among entities, indicating how they are related to each other. Constraint = A restriction placed on the data, limiting the values or operations allowed.

Match the evolution stages of data models with their characteristics:

Hierarchical = Difficult to represent many-to-many relationships and has structural level dependency. Network = No ad hoc queries are allowed, and access path is predefined (navigational access). Relational = Provides ad hoc queries (SQL) and is set-oriented. Object-Oriented = Supports complex objects, inheritance, and unstructured data (XML).

Match the following terms with the appropriate data abstraction level:

External Model = end users' view of the data environment Conceptual Model = global view of the entire database, independent of software and hardware Internal Model = representation of the database as 'seen' by the DBMS, dependent on specific database software Physical Model = operates at the lowest level of abstraction

Match each term with its corresponding definition in the context of database design:

<p>Data Model = An abstraction of a real-world object or event that is useful in understanding complexities. Business Rule = A description of policies, procedures, or principles within a specific organization regarding data management. Relational Diagram = A representation of entities, attributes, and relationships within a relational model. Entity Relationship Diagram (ERD) = A graphical representation of entities and their relationships, widely used for data modeling.</p> Signup and view all the answers

Match the following terms with the components of a Relational Model

<p>Tables = Consist of rows and columns and are related through shared fields. Rows = Represent individual records or instances of an entity. Columns = Represent attributes or characteristics of an entity. Shared Fields = Used to relate tables to each other within the relational database structure.</p> Signup and view all the answers

Match the concepts to their descriptions in the context of basic data modelling

<p>Entity = Anything about which data are collected: e.g. person, place, thing, or event. Constraint = A restriction placed on the data. Relationship = Association among entities Attribute = A characteristic of an entity.</p> Signup and view all the answers

Match the characteristics with the corresponding data models:

<p>Conceptual simplicity = Relational model Class hierarchy = Object-Oriented model Structural dependency = Hierarchical model Schema-less = NoSQL</p> Signup and view all the answers

Match the terms with their role in a database:

<p>Designer = Creates the structure and specifies the relationships between data. Programmer = Implements the applications that interact with the data. End user = Accesses and utilizes the information stored in the database. Data Model = Organizes data for various users.</p> Signup and view all the answers

Match the statements about data modeling:

<p>Data modeling = Is the first step in the database design journey. Data Model = Consolidates and organizes data for various users. Business Rules = Used to define entities, attributes, relationships and constraints. Nouns = Translate into entities.</p> Signup and view all the answers

Match the definitions with the terms:

<p>Hierarchical Data Model = Each 'child' record has only one 'parent'. Network Data Model = Records can have multiple parent and child records, forming a network-like structure. Relational Data Model = Data is organized into tables, and relationships are based on shared attributes. Object-Oriented Data Model = Incorporates concepts from object-oriented programming</p> Signup and view all the answers

Match the data model with the access method:

<p>Hierarchical Data Model = Predefined access paths (Navigational Access) Network Data Model = Predefined access paths (Navigational Access) Relational Data Model = Ad-hoc queries (SQL) NoSQL Data Model = Variable</p> Signup and view all the answers

Match the constraints with their definitions in a CREATE TABLE statement:

<p>NOT NULL = Specifies that a column cannot contain a NULL value. UNIQUE = Ensures that all values in a column are different. PRIMARY KEY = Uniquely identifies each record in a table. REFERENCES = Establishes and enforces a link between the data in two tables.</p> Signup and view all the answers

Match levels of data abstraction with the following descriptions:

<p>Conceptual = Database model independent. External = Each business units operations. Internal = Database concepts supported by the DBMS. Physical = Describes how data is stored.</p> Signup and view all the answers

Match the following properties of data models:

<p>Consistency = Data transformations for database. Semantic Completeness = Capture all relevant aspects of modeled system. Integrity = Ensuring its accuracy and reliability of a database. Real-world Representation = Reflect the actual entities.</p> Signup and view all the answers

Match the following entities with their statements in examples of business rules:

<p>A customer = May generate only one invoice. An invoice = May generate many invoices. A dinner = Is Based on a single entree. Each guest = can receive many invitations.</p> Signup and view all the answers

Match the following parts with properties about tables:

<p>Singular names for tables = To ensure all developers can identify. Singular names for columns = Follow the data. Pascal casing = Describes the characteristics of columns. Schema name for tables prefix = Name of tables that are self documented.</p> Signup and view all the answers

Match UML notation with the following descriptions:

<p>A One-to-Many Relationship = A painter can paint many paintings: each painting is painted by one painter. A Many-to-Many Relationship = An employee can learn many skills: each skill can be learned by many employees. One-to-One Relationship = An employee manages one store each store is managed by one employee. Basic UML notation = Each item is labeled appropriately.</p> Signup and view all the answers

Match NoSQL characteristics:

<p>Not based on relational model = Enables schema architecture. Supports big data architectures = Supports many databases. Scalability and fault tolerance = Allows high support in case there is a loss or fault. Sparse data = Contains data points that are large.</p> Signup and view all the answers

Match the types of relationships with examples:

<p>One-to-Many = A customer may generate many invoices One-to-One = Each class is taught in only one room A many Guests = Can receive many invitations Generate Many Invoices = May generate only one invoice.</p> Signup and view all the answers

Match the correct description to these terms:

<p>Physical Level = Dependent on software. ER diagrams = Express external views. Conceptual schema = External views. Easy to understand = More semantics.</p> Signup and view all the answers

Match terms in conceptual model to the correct statement:

<p>Entire database = Describes global view Easily understood = Description of data environment ER model = Identifies the most widely used. Software = Should be independent</p> Signup and view all the answers

Match the following data models with the correct time period:

<p>Hierarchical = 1960 Network = 1969 Relational = 1970 Object-oriented = 1985</p> Signup and view all the answers

Match the description of a database with the role in database design:

<p>Facilitates designer's job = Advantages of data requirements. Requires high pay = Not found in the documentation. Ensures security constraints = Advantages of the requirement. Simplifies application program = Advantages of using data.</p> Signup and view all the answers

Match the types to the attributes, from the below CREATE statement

<p>varchar(255) = FirstName int = ID TABLE persons = Create the rows NOT NULL UNIQUE = Restricts the columns</p> Signup and view all the answers

Match the degrees of data abstraction to the process:

<p>High level = Classifying data models. Usable database = Follow the same basic process. The DBMS software = Implement the model.</p> Signup and view all the answers

Pick the attributes and match them in models:

<p>Entity name, primary keys = ERM Feature. Foreign keys = Internal. Column data types = Logical Design. Attributes = External conceptual.</p> Signup and view all the answers

Match the database evolution to each type:

<p>Structural dependency = Difficult to represent M:N relationships. Simple = Conceptual. Data exchanges = XML. sparse data = Suited for large data stores.</p> Signup and view all the answers

Select each component and place them with the name:

<p>policies, procedures, or principles = organization. operations = organizations kept up to date = Rules. entities = Constraint.</p> Signup and view all the answers

Pick the column name that corresponds with data modeling to be in correct data format:

<p>nouns = entities. relationships = Verbs. bidirectional = Relations. B relate to A = Questions types.</p> Signup and view all the answers

Match the objectives with emerging technologies:

<p>Media data = Social. high performance = Reasonable cost. Distributed architecture = Supports. Fault tolerance = Scalability.</p> Signup and view all the answers

Flashcards

What is a Model?

An abstraction of a real-world object or event.

What are Data Models?

Relatively simple representations of complex real-world data structures.

What is an Entity?

Anything about which data are collected.

What is an Attribute?

A characteristic of an entity.

Signup and view all the flashcards

What is a Relationship?

Association among entities.

Signup and view all the flashcards

What is a Constraint?

A restriction placed on the data.

Signup and view all the flashcards

What are Business Rules?

Descriptions of policies, procedures, or principles within a specific organization

Signup and view all the flashcards

What is Proper Naming?

Naming must be unique and distinguishable from other objects; be descriptive of objects in environment and be familiar to users

Signup and view all the flashcards

What is the Relational Model?

Implemented through a relational data management system (RDBMS); hides complexity from user

Signup and view all the flashcards

What is a Relational Diagram?

Representation of entities, attributes, and relationships

Signup and view all the flashcards

What do Relational Tables consist of?

Tables consist of rows and columns and are related to each other through shared fields.

Signup and view all the flashcards

What is the Entity Relationship Diagram (ERD)?

Graphical representation of entities and their relationships in a database structure

Signup and view all the flashcards

What is an Entity Set?

Collection of similar entities.

Signup and view all the flashcards

What is Connectivity?

Specifies how entities are related.

Signup and view all the flashcards

What is unique about Data Models?

Conceptual simplicity with semantic completeness.

Signup and view all the flashcards

What are Degrees of Abstraction?

Way of classifying data models

Signup and view all the flashcards

What is the External Model?

End users' view of the data environment.

Signup and view all the flashcards

What is External Schema?

Specific representation of an external view.

Signup and view all the flashcards

What are Constraints used for?

Used to specify rules for the data in a table; used to limit the type of data that can go into a table.

Signup and view all the flashcards

What is the Conceptual Model?

Represents global view of the entire database; External views integrated into a single global view.

Signup and view all the flashcards

What is the Internal Model?

Representation of database as “seen” by the DBMS

Signup and view all the flashcards

What is the Physical Model?

Operates at lowest level of abstraction; Describes the way data are saved on storage media such as disks.

Signup and view all the flashcards

What is Big Data?

Movement to manage large amounts of Web-generated data and derive business insight.

Signup and view all the flashcards

What is NoSQL?

Databases for Big Data era, NOT based on Relational Model and supports distributed database architectures.

Signup and view all the flashcards

Study Notes

Data Model Fundamentals

  • In this chapter, one will learn the definition of a data model and why it's important.
  • An overview of basic data-modeling building blocks will be provided.
  • Another objective is to understand business rules and how they influence database design.
  • How the major data models have evolved will be covered.
  • How data models can be classified by level of abstraction also will be covered.

Data Modeling and Data Models

  • A model is an abstraction of a real-world object or event.
  • Models are useful in understanding complexities.
  • Data models are relatively simple representations of complex real-world data structures.
  • Data modeling is iterative and progressive.
  • Data modeling is the first step in the database design, bridging real-world objects and the residing database.
  • Importance of data models lies in facilitating designer, programmer, and end-user interaction.
  • End users have varied data views and needs.
  • Data models consolidate or organize data for users.
  • Data models are essentially an abstraction.

Data Model Building Blocks

  • An entity is anything about which data must be collected like a person, thing, or event.
  • An attribute is a characteristic of an entity.
  • A relationship is an association among entities, such as one-to-many, many-to-many, or one-to-one.
  • A constraint places restrictions on the data to ensure integrity.

Business Rules

  • Business rules outline policies, procedures, or principles within an organization These rules apply to any organization storing and using data to produce information.
  • The business rules are derived from an organization's operations and enforce actions.
    • Business Rules should be written, updated, easily understood, and disseminated widely.
  • Business rules describe characteristics of data as viewed within an organization.
  • Properly written business rules are used to define entities, attributes, relationships, and constraints.
    • E.g "A customer may generate many invoices" or "An invoice is generated by only one customer".
  • Nouns translate into entities in data models.
  • Verbs are translated into relationships.
  • Relationships are considered bidirectional.
  • Identifying the relationship type involves asking how many instances of B relate to A, and vice versa.

Naming Conventions

  • Naming happens during translation of business rules to data model components.
  • Names for objects should uniquely identify and differentiate from others.
  • Names should be descriptive and familiar to database users.
  • Proper naming enhances communication and promotes self-documentation.
  • Follow conventions like singular names for tables and columns, Schema name for table prefixes and Pascal casing.

Evolution of Data Models

  • 1960: Hierarchical model developed, which was difficult to represent M:N relationships, was structurally dependent and required a predefined access path
  • 1969: The network model, in 1969, allowed for predefined navigational access but lacked ad hoc queries
  • 1970: Relational model introduced conceptual simplicity, structural independence and ad hoc queries using SQL.
  • 1976: Entity Relationship emerged in 1976 for easier understanding and more semantics, but was limited to conceptual modeling
  • 1978: The semantic model allowed for more semantics in data models and complex relationships
  • 1985: Object-oriented model gained traction supporting unstructured data and Inheritance (class hierarchy)
  • 1990: Extended Relational (O/R DBMS) was developed supporting XML data exchanges.
  • 2009: Big Data and NoSQL addresses the Big Data problem with fewer semantics, using schema-less key-value data models suitable for large sparse data stores
    • Relational Model is implemented via a relation data management system (RDBMS) and hides complexity.
    • Relational diagrams represent entities, attributes, and relationships.
    • Relational tables store related entities in rows and columns, related through shared fields.

The Entity Relationship Model

  • ER model is a widely accepted standard for data modeling.
  • It provides a graphical representation of entities and their relationships within a database.
  • Uses graphic representations to model database components
  • An entity is mapped to a relational table, with each instance represented as a row.
  • An entity set forms a collection of like entities, and connectivity labels the types of relationships.

Data Models - Summary

  • Data models provide conceptual simplicity with semantic completeness, and represent the real world as close as possible.
  • Real-world transformations must comply with consistency and integrity characteristics.
  • Each new data model capitalized on the shortcomings of previous models.
  • Some models are better suited for certain tasks.

Degrees of Data Abstraction

  • Degrees of abstraction classify data models.
  • Abstracted processes start at high level and then proceeds to ever increasing detail.
  • Designing a usable database follows this basic process.

Levels of Data Abstraction

  • External: End-user view, independent of hardware & software.
  • Conceptual: Global data view, independent of database model, hardware & software.
  • Internal: Specific database model, independent of hardware.
  • Physical: Storage and access methods, dependent on neither hardware nor software.

The External Model

  • Represents the end users' view of the data environment via ER diagrams.
  • External schema represents an external view including entities, relationships, processes, and constraints.
  • Advantages include identification of specific data required, designer feedback, improved security and simplified application development.
  • Constraints are used to limit the data in a table. If there is any violation between the constraint and the data action, the action is aborted.

The Conceptual Model

  • Represents the global view of the entire database, integrating all external views.
  • ER model is widely used, and ERD visually represents the conceptual schema.
  • Provides a macro-level view.
  • Its is independent of both software and hardware. Therefore software or hardware changes do not affect conceptual database design.

The Internal Model

  • The DBMS "view" of the database, mapping the conceptual model to the DBMS, and depends on support to concepts by the DBMS.
  • Change in DBMS software requires internal model alterations.
  • Logical independence means the internal model can be changed without conceptual model alterations.

Physical Model

  • Physical Model operates at the lowest level of abstraction.
  • It describes data storage on media and requires definition of physical storage and access methods.
  • Physical models are both software and hadward dependant.
  • The now Relational model aimed at logical level and does not require details about physical
  • Physical independence means changes in the physical model do not affect internal model.

Data Models: Overview

  • ERM/ ERD Features
    • External and Conceptual Models: Entity Names, Entity relationships.
    • Logical [Database Design] Model: Attributes, table names, Primary Keys, Foreign keys.
    • Internal [Database Physical] Model: column names, column data types, primary keys and foreign keys.

Big Data & NoSQL

  • Big Data is the movement to find methods to manage Web generated data and derive business insights while maintaining high performance and reduced costs.
  • Relational database not suitable for challenges such as unstructured data and milliong of rows structured and unstructured data due to unsuitability for mining such information.
  • NoSQL is a generation of databases for specific Big Data challenges.
    • It is not based on relational databases
    • Supports distributed architectures.
    • Provides scalability, availability and fault tolerance.
    • It can support very large amounts of sparse data.
    • Is is also performance driven, rather than transaction consistency.

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