Podcast
Questions and Answers
What is the primary purpose of a data model?
What is the primary purpose of a data model?
What is typically included in a data model structure?
What is typically included in a data model structure?
What type of operations are used to specify database retrievals and updates?
What type of operations are used to specify database retrievals and updates?
What is the purpose of constraints in a data model?
What is the purpose of constraints in a data model?
Signup and view all the answers
What is a database schema?
What is a database schema?
Signup and view all the answers
What is the three-schema architecture?
What is the three-schema architecture?
Signup and view all the answers
What is data independence?
What is data independence?
Signup and view all the answers
What is the primary purpose of DBMS languages and interfaces?
What is the primary purpose of DBMS languages and interfaces?
Signup and view all the answers
What type of data model is closest to the way users perceive data?
What type of data model is closest to the way users perceive data?
Signup and view all the answers
What is the primary focus of physical data models?
What is the primary focus of physical data models?
Signup and view all the answers
What is a database schema?
What is a database schema?
Signup and view all the answers
What is a schema construct?
What is a schema construct?
Signup and view all the answers
What is a database instance?
What is a database instance?
Signup and view all the answers
What is a valid state of a database?
What is a valid state of a database?
Signup and view all the answers
What is the initial database state?
What is the initial database state?
Signup and view all the answers
What is the main difference between a database schema and a database instance?
What is the main difference between a database schema and a database instance?
Signup and view all the answers
What is the primary difference between a database schema and a database state?
What is the primary difference between a database schema and a database state?
Signup and view all the answers
What is another term for database schema?
What is another term for database schema?
Signup and view all the answers
What is the purpose of a database schema diagram?
What is the purpose of a database schema diagram?
Signup and view all the answers
What type of information is stored in the COURSE table in the example database?
What type of information is stored in the COURSE table in the example database?
Signup and view all the answers
How many credit hours are associated with the course 'Data Structures' in the example database?
How many credit hours are associated with the course 'Data Structures' in the example database?
Signup and view all the answers
What is the primary key of the SECTION table in the example database?
What is the primary key of the SECTION table in the example database?
Signup and view all the answers
What is the relationship between the COURSE and SECTION tables in the example database?
What is the relationship between the COURSE and SECTION tables in the example database?
Signup and view all the answers
How often does the database schema change?
How often does the database schema change?
Signup and view all the answers
What is the primary purpose of mappings among schema levels?
What is the primary purpose of mappings among schema levels?
Signup and view all the answers
What happens when a schema at a lower level is changed in a DBMS that fully supports data independence?
What happens when a schema at a lower level is changed in a DBMS that fully supports data independence?
Signup and view all the answers
What is the benefit of logical data independence?
What is the benefit of logical data independence?
Signup and view all the answers
What is the purpose of the external schema?
What is the purpose of the external schema?
Signup and view all the answers
What is the advantage of physical data independence?
What is the advantage of physical data independence?
Signup and view all the answers
Why is it necessary to reformat data extracted from the internal DBMS level?
Why is it necessary to reformat data extracted from the internal DBMS level?
Signup and view all the answers
What is the three-schema architecture designed to achieve?
What is the three-schema architecture designed to achieve?
Signup and view all the answers
What is the relationship between the external schema and application programs?
What is the relationship between the external schema and application programs?
Signup and view all the answers
What is the primary function of Data Definition Language (DDL)?
What is the primary function of Data Definition Language (DDL)?
Signup and view all the answers
What is the main characteristic of a High-Level or Non-procedural Language?
What is the main characteristic of a High-Level or Non-procedural Language?
Signup and view all the answers
What is the purpose of a Storage Definition Language (SDL)?
What is the purpose of a Storage Definition Language (SDL)?
Signup and view all the answers
What is the primary function of Data Manipulation Language (DML)?
What is the primary function of Data Manipulation Language (DML)?
Signup and view all the answers
What is the purpose of a View Definition Language (VDL)?
What is the purpose of a View Definition Language (VDL)?
Signup and view all the answers
How can DML commands be used?
How can DML commands be used?
Signup and view all the answers
What is the advantage of using High-Level or Non-procedural Languages?
What is the advantage of using High-Level or Non-procedural Languages?
Signup and view all the answers
What is the purpose of a library of functions in DML?
What is the purpose of a library of functions in DML?
Signup and view all the answers
Study Notes
Data Models
- A data model is a set of concepts to describe the structure of a database, operations for manipulating these structures, and certain constraints that the database should obey.
- Data model structure consists of constructs used to define the database structure, including elements, their data types, and relationships among them.
- Data model operations specify database retrievals and updates, including basic model operations and user-defined operations.
- Constraints specify restrictions on valid data that must be verified at all times.
Categories of Data Models
- Conceptual (high-level, semantic) data models provide concepts close to the way users perceive data, also known as entity-based data models.
- Logical (representational) data models provide concepts that fall between the conceptual and physical levels, such as relational data models used in commercial systems.
- Physical (low-level, internal) data models provide concepts describing how data is stored in the computer, usually specified in an ad-hoc manner.
Schemas, Instances, and States
- A database schema is a description of a database, including its structure, data types, and constraints.
- A schema diagram is an illustrative display of a database schema.
- A schema construct is a component of the schema or an object within the schema, such as STUDENT or COURSE.
- A database instance or state is the actual data stored in a database at a particular moment in time.
- A database state can be the initial state, a valid state that satisfies the structure and constraints of the database, or a state that changes every time the database is updated.
Three-Schema Architecture
- The three-schema architecture consists of external, conceptual, and internal schemas.
- Mappings among schema levels are needed to transform requests and data.
- Programs refer to an external schema, which is 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.
Data Independence
- Logical data independence is the capacity to change the conceptual schema without having to change the external schemas and their associated application programs.
- Physical data independence is the capacity to change the internal schema without having to change the conceptual schema.
- Data independence allows changes to the schema at a lower level without affecting the higher-level schemas and associated application programs.
DBMS Languages and Interfaces
- Data Definition Language (DDL) is used to specify the conceptual schema of a database, and may be used to define internal and external schemas.
- Data Manipulation Language (DML) is used to specify database retrievals and updates, and can be embedded in a general-purpose programming language or used as a standalone query language.
- High-level or non-procedural languages, such as SQL, are "set"-oriented and specify what data to retrieve, whereas low-level or procedural languages must be embedded in a programming language.
- Types of DML include procedural languages, non-procedural languages, and query languages.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
Test your knowledge of database system concepts and architecture, including data models, schemas, and instances, based on Chapter 2 of Fundamentals of Database Systems.