Database Systems - Chapter 2 Data Models

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary purpose of a data model in the context of database systems?

  • To specify the physical storage structure of data.
  • To control user access to the database.
  • To define the programming language used to interact with the database.
  • To describe the structure of a database and achieve data abstraction. (correct)

Which category of data models is characterized by representing information about how data is stored on computer storage media?

  • High-level data models
  • Conceptual data models
  • Low-level data models (correct)
  • Implementation data models

Which term describes an illustrative display of a database schema?

  • Database instance
  • Schema diagram (correct)
  • Database state
  • Schema construct

What does the term 'database instance' refer to?

<p>The actual data stored in a database at a specific moment in time. (C)</p> Signup and view all the answers

In the three-schema architecture, which level describes how data is physically stored and accessed?

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

Which type of data independence allows changes to the internal schema without affecting the conceptual schema?

<p>Physical data independence (C)</p> Signup and view all the answers

What is the role of mappings in the three-schema architecture?

<p>To transform requests and data between schema levels. (C)</p> Signup and view all the answers

Which language is used by DBAs and database designers to specify the conceptual schema of a database?

<p>Data Definition Language (DDL) (D)</p> Signup and view all the answers

Which type of DML requires the user to specify how to retrieve the required data?

<p>Low Level or Procedural DML (D)</p> Signup and view all the answers

Which of the following is a function typically performed by database system utilities?

<p>Loading data from existing files into the database. (C)</p> Signup and view all the answers

Which is an example of a database system utility?

<p>Backup and recovery tools (C)</p> Signup and view all the answers

In the context of database systems, what is an 'entity'?

<p>A real-world object represented in the database. (C)</p> Signup and view all the answers

What is the primary characteristic of a hierarchical data model?

<p>Data is represented as a tree structure with each child having only one parent. (B)</p> Signup and view all the answers

How do network data models differ from hierarchical data models?

<p>Network models allow a child node to have multiple parent nodes, while hierarchical models only allow one parent. (C)</p> Signup and view all the answers

A database that supports multiple users accessing and modifying data concurrently is classified as what type of system?

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

Which concept ensures that changes at one level of the database architecture do not necessarily require changes at higher levels?

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

Which type of database is based on representing data and their relationships in the form of a graph, allowing a child to be related to more than one parent?

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

What is the significance of the conceptual level in the three-schema architecture of a DBMS?

<p>It describes the structure and constraints for the entire database for a community of users. (D)</p> Signup and view all the answers

What is the main difference between logical and physical data independence?

<p>Logical data independence allows changes to the conceptual schema ewithout affecting applications, while physical data independence allows changes to the physical storage without affecting the conceptual schema. (A)</p> Signup and view all the answers

Which of the following is a characteristic of 'set-at-a-time' DMLs?

<p>They can retrieve many records using a single DML statement. (B)</p> Signup and view all the answers

Flashcards

Data Model

A set of concepts used to describe the structure of a database, providing data abstraction.

Entity

Represent real-world objects in a database model.

Attribute

Describe the properties or characteristics of an entity.

Relationship

Represent associations among two or more entities.

Signup and view all the flashcards

Low-level data model

Describes how data is stored on computer storage media, including access paths.

Signup and view all the flashcards

Access Path

A structure that makes the search for particular database records efficient.

Signup and view all the flashcards

Database schema

The description of a database, acting as a blueprint.

Signup and view all the flashcards

Schema Diagram

An illustrative display of a database schema.

Signup and view all the flashcards

Schema Construct

Each object within the schema (e.g., STUDENT, COURSE).

Signup and view all the flashcards

Database State

The actual data stored in a database at a given moment in time; also called a database instance or snapshot.

Signup and view all the flashcards

Empty Database State

When a new database is defined, only the database schema is known to the DBMS.

Signup and view all the flashcards

Initial Database State

Database state when it is initially loaded with data.

Signup and view all the flashcards

Valid State

A state that satisfies the structure and constraints of the database.

Signup and view all the flashcards

Three-Schema Architecture

Aims to separate user applications from the physical database via three levels.

Signup and view all the flashcards

Data Definition Language (DDL)

Language used to specify the conceptual schema of a database.

Signup and view all the flashcards

Data Manipulation Language (DML)

Language used to specify database retrievals and updates.

Signup and view all the flashcards

High-Level DML

Allows users to state what data is needed, not how to retrieve it.

Signup and view all the flashcards

Low-Level DML

Allows users to specify exactly how to manipulate data.

Signup and view all the flashcards

Logical Data Independence

Ability to change the conceptual schema without altering external schemas.

Signup and view all the flashcards

Physical Data Independence

Ability to change the internal schema without altering the conceptual schema.

Signup and view all the flashcards

Study Notes

  • Database systems refer to the database environment
  • Chapter 2 focuses on database system concepts and architecture

Data Models

  • Data models are a set of concepts used to describe the structure of a database, used to achieve data abstraction
  • Data models include basic operations to specify retrievals and updates on the database
  • Operations include basic model operations such as insert, delete, update and user-defined operations
  • Database designers define rules and operations to specify how data is stored, accessed, and manipulated by database objects

Categories of Data Models

  • Data models are classified based on the concepts used to describe database structure
  • There are 3 types of Data Models: high-level, low-level, and implementation
  • High-level or conceptual data models provide concepts close to how users perceive data
  • Uses concepts such as entity (real-world object), attributes (describe an entity), and relationships (associations among entities)
  • Referred to entity-based or object-based data models
  • Low-level or physical data models describe how data is stored on computer storage
  • Represents information like the "access path," which makes database record searches efficient
  • Implementation (representational) data models represent data using record structure, thus record-based models
  • Provide concepts between high and low levels, used by commercial DBMS implementations like relational, network, and hierarchical data models

Terminologies

  • A database schema is the description of a database
  • Acts as a blueprint, outlining tables, fields, relationships, and rules governing the data
  • A schema diagram is an illustrative display of a database schema
  • Schema construct represents each object within the schema
  • Database state is the actual data stored in a database at a particular moment
  • Also called the database instance or snapshot
  • An empty database state contains no data, and the database schema is only specified to the DBMS
  • The initial database state refers to when a database is loaded with its initial data
  • A valid state satisfies the structure and constraints

Three-Schema Architecture

  • The goal of the three-schema architecture is to separate user applications from the physical database
  • Three-schema architecture defines DBMS schemas at three levels
  • Internal, conceptual, and external

Internal Level

  • The internal schema describes the physical storage structures and access paths of the database
  • Typically uses a physical data model

Conceptual Level

  • The conceptual schema layer describes the structure and constraints for the entire database for a community of users
  • Uses a conceptual or implementation data model

External Level

  • External schemas describe various user views
  • Usually uses the same data model as the conceptual schema
  • Each external schema describes the part of the database a user is interested in and hides the rest

Schemas Layers

  • Mappings among schema levels are needed to transform requests and data
  • Programs refer to an external schema and are mapped by the DBMS to the internal schema for execution
  • Data extracted from the internal DBMS level is reformatted to match the user's external view, such as reformatting SQL query results for web display

Data Independence

  • Data independence means that upper levels are unaffected by changes to lower levels
  • There are two types of data independence: logical and physical
  • Logical data independence is the ability to change the conceptual schema without changing external schemas and associated application programs
  • This refers to the mapping between external and conceptual schemas
  • Physical data independence is the ability to change the internal schema without changing the conceptual schema
  • This refers to the mapping between the conceptual and internal schemas
  • When a schema at a lower level is changed, only the mappings between this and higher-level schemas need to be changed in a DBMS that fully supports data independence
  • The higher-level schemas themselves remain unchanged, and application programs do not need to be changed since they refer to the external schemas

DBMS Languages

  • Data Definition Language (DDL) is used by the DBA and database designers to specify a database's conceptual schema
  • In many DBMSs, DDL is also used to define internal and external schemas
  • Some DBMSs, separate storage definition language (SDL) and view definition language (VDL) are used to define internal and external schemas
  • Data Manipulation Language (DML) is used to specify database retrievals and updates
  • DML commands (data sublanguage) can be embedded in general-purpose programming languages (host languages) like COBOL, C, C++, or Java
  • A library of functions can also access the DBMS from a programming language
  • Alternatively, stand-alone DML commands can be applied directly, referred to as a query language

Types of DML

  • There are 2 types of DML: high level or low level
  • High-level or non-procedural language allows users to state what data is needed rather than how to retrieve it, such as SQL
  • Also referred to as declarative languages
  • Also called "set-at-a-time" DMLs because it can retrieve many records using a single DML statement
  • Low-level or procedural language allows users to tell the system exactly how to manipulate data
  • Embedded in a general-purpose programming language
  • Also called "record-at-a-time"

Database System Utilities and Tools

  • Most DBMSs have database utilities that help the DBA manage the database system
  • They perform functions such as loading (loading existing data files into a database, includes data conversion tools)
  • Backup creates a copy for restoration in case of failure
  • Performance monitoring monitors database usage and provides statistics

Classification of DBMSs

  • There are several criteria used to classify a DBMS
  • Classification includes model and number of users
  • Based on the data model:
  • Relational data model: represents the database as a collection of tables
  • Object-oriented data model: defines the database in terms of objects, properties, and relationships
  • Hierarchical data model: represents data as a tree structure where each child has only one parent
  • Network data model: represents objects and their relationships in the form of a graph where a child can be related to more than one parent
  • Based on the number of users
  • Single-user system: supports only one user at a time
  • Multiuser system: supports multiple users at the same time
  • This is the most common of DBMS

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 Models and Data Structures
20 questions

Database Models and Data Structures

CommendableExpressionism avatar
CommendableExpressionism
GIS Data Models and Spatial Data Structures Lecture 2 Objectives
12 questions
Use Quizgecko on...
Browser
Browser