Lecture 3 Flashcards
Describes database structure: data types, relationships, constraints.
Specifies retrieval and update operations.
Increasingly includes dynamic aspects of database applications.
Data Model
Provide concepts that are close to the way many users perceive data (Also called entity-based, object-based data models)
Conceptual (high-level)
Provide concepts that describe details of how data is stored in the computer
Physical (low-level)
Provides concepts that may be understood by end users but that are not too far removed from the way data is organized within the computer
Hide some details of data storage but can be implemented on a computer system in a direct way
Implementation (representational)
The description of a database.
Not expected to change frequently
Database Schema (intension)
A diagrammatic display of (some aspects of) a database schema.
Schema Diagram
The data in the database at a particular moment of time. Also called the current set of occurrences or instances.
Every update operation changes the database from one state to another
Database State (extension)
Describes the physical storage structure
Uses a physical data model
Internal Schema
Describes the structure of the whole database Uses a conceptual or an implementation data model
Conceptual Schema
Includes a number user views. Uses a conceptual or an implementation data model
External Schema
The process of transforming requests and results between levels
Mappings
The capacity to change the conceptual schema without having to change the external schema or application programs
Logical Data Independence
The capacity to change the internal schema without having to change the conceptual schema
Physical Data Independence
Defines conceptual schema by DBA and designers.
Also used to define the internal and external schemas
In some systems, separate SDL and VDL define internal and external schemas.
Data Definition Language (DDL)
can be used as stand-alone (query language) or can be embedded within a general-purpose language
Data Manipulation Language (DML)