DBS Concepts and Architecture Flashcards
Data Model
- A set of concepts to describe the structure of a database
* Has constraints that the database should obey
Data Model Operations
- Specify database retrievals and updates
* Basic operations and user-defined operations
Conceptual (high-level, semantic) data models
• Provide concepts that are close to the way many users perceive data. (Also called entity-based or object-based data models.)
Physical (low-level, internal) data models
• Provide concepts that describe details of how data is stored in the computer.
Representational (implementation) data models
• Provide concepts that fall between the above two, balancing user views with some computer storage details.
Database Schema
The description of a database.
• Describe the structure and constraints.
Schema Diagram
A diagrammatic display of (some aspects of) a database schema.
Schema Construct
A component of the schema (e.g., STUDENT, COURSE).
Database State
Content of a database at a moment in time.
Initial Database State
Refers to the database when it is loaded.
Distinction between DB Schema and DB State
- The database schema changes very infrequently. The database state changes every time the database is updated.
- Schema is also called intension, whereas state is called extension.
Three Schema Architecture
Defines DBMS schemas at 3 levels:
1, External schemas at the external level describe the various user views usually uses the same data model as the conceptual level
2, Conceptual schema at the conceptual level describe the structure and constraints for the whole database uses a conceptual or an implementation data model
3. Internal schema at the internal level describe physical storage structures and access paths typically uses a physical data model
Data Independence (2)
- Logical Data Independence: Can change the conceptual schema without changing the external schemas and their application programs.
- Physical Data Independence: Can change the internal schema without changing the conceptual schema.
DBMS Languages (3)
- Data Definition Language (DDL): To specify the conceptual schema of a database.
- Storage definition language (SDL)
- View definition language (VDL)
(last 2 used to define internal and external schemas) - Data Manipulation Language (DML): Used to specify database retrievals and updates
- High Level or Declarative Languages: Specify what to do (what data to retrieve); not how to do. (Ex. SQL)
- Low Level or Procedural Languages: Specify how to do; not what to do. (Has constructs like loops)
Different Interfaces
- Menu-based, popular for browsing on the web
- Forms-based, designed for naïve users
- Graphics-based (Point and Click, Drag and Drop etc.)
- Natural language: requests in written English
- Combinations of the above