Podcast
Questions and Answers
What is the primary purpose of a data model in the context of database systems?
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?
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?
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?
What does the term 'database instance' refer to?
In the three-schema architecture, which level describes how data is physically stored and accessed?
In the three-schema architecture, which level describes how data is physically stored and accessed?
Which type of data independence allows changes to the internal schema without affecting the conceptual schema?
Which type of data independence allows changes to the internal schema without affecting the conceptual schema?
What is the role of mappings in the three-schema architecture?
What is the role of mappings in the three-schema architecture?
Which language is used by DBAs and database designers to specify the conceptual schema of a database?
Which language is used by DBAs and database designers to specify the conceptual schema of a database?
Which type of DML requires the user to specify how to retrieve the required data?
Which type of DML requires the user to specify how to retrieve the required data?
Which of the following is a function typically performed by database system utilities?
Which of the following is a function typically performed by database system utilities?
Which is an example of a database system utility?
Which is an example of a database system utility?
In the context of database systems, what is an 'entity'?
In the context of database systems, what is an 'entity'?
What is the primary characteristic of a hierarchical data model?
What is the primary characteristic of a hierarchical data model?
How do network data models differ from hierarchical data models?
How do network data models differ from hierarchical data models?
A database that supports multiple users accessing and modifying data concurrently is classified as what type of system?
A database that supports multiple users accessing and modifying data concurrently is classified as what type of system?
Which concept ensures that changes at one level of the database architecture do not necessarily require changes at higher levels?
Which concept ensures that changes at one level of the database architecture do not necessarily require changes at higher levels?
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?
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?
What is the significance of the conceptual level in the three-schema architecture of a DBMS?
What is the significance of the conceptual level in the three-schema architecture of a DBMS?
What is the main difference between logical and physical data independence?
What is the main difference between logical and physical data independence?
Which of the following is a characteristic of 'set-at-a-time' DMLs?
Which of the following is a characteristic of 'set-at-a-time' DMLs?
Flashcards
Data Model
Data Model
A set of concepts used to describe the structure of a database, providing data abstraction.
Entity
Entity
Represent real-world objects in a database model.
Attribute
Attribute
Describe the properties or characteristics of an entity.
Relationship
Relationship
Signup and view all the flashcards
Low-level data model
Low-level data model
Signup and view all the flashcards
Access Path
Access Path
Signup and view all the flashcards
Database schema
Database schema
Signup and view all the flashcards
Schema Diagram
Schema Diagram
Signup and view all the flashcards
Schema Construct
Schema Construct
Signup and view all the flashcards
Database State
Database State
Signup and view all the flashcards
Empty Database State
Empty Database State
Signup and view all the flashcards
Initial Database State
Initial Database State
Signup and view all the flashcards
Valid State
Valid State
Signup and view all the flashcards
Three-Schema Architecture
Three-Schema Architecture
Signup and view all the flashcards
Data Definition Language (DDL)
Data Definition Language (DDL)
Signup and view all the flashcards
Data Manipulation Language (DML)
Data Manipulation Language (DML)
Signup and view all the flashcards
High-Level DML
High-Level DML
Signup and view all the flashcards
Low-Level DML
Low-Level DML
Signup and view all the flashcards
Logical Data Independence
Logical Data Independence
Signup and view all the flashcards
Physical Data Independence
Physical Data Independence
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.