1. Home
  2. Explore
  3. Computer Science
  4. DBMS Concepts and Architecture

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

DBMS Concepts and Architecture

Database Concepts and Architecture for Decision Support Systems

Why Database Design Matters

A Database Management System (DBMS) is important to a Decision Support System (DSS) because the DSS relies on data stored in databases to produce useful information for business decisions. The quality of a DSS’s results depends on the quality and organization of its data.

GIGO — “Garbage In, Garbage Out”: Poor-quality or incorrectly structured data leads to poor-quality results. A DSS therefore needs accurate, well-organized data and a database design that supports reliable retrieval and updates.

Database design involves defining what data will be stored, how it will be organized, and what rules the data must follow. These foundations make it possible to develop more detailed designs, such as entity–relationship diagrams, and to implement them in a DBMS.


Data Models

A data model is a collection of concepts used to describe a database’s structure and the constraints it must obey. It defines what the database contains and the rules that govern its data.

A data model typically describes:

  • The database’s tables and the data stored in them.

  • The relationships among parts of the data.

  • Constraints that the data must satisfy, such as requirements for unique identifiers or relational keys.

  • The operations used to retrieve or update data while respecting the model’s structure and constraints.

Data-model operations

Data-model operations are the operations used to retrieve and update a database according to the concepts and rules of its data model.

  • Retrieval means extracting information from the database.

  • Updates include adding new data, modifying existing data, and removing data.

The structure and constraints in the data model guide these operations, helping ensure that changes do not violate the database’s rules.

Three broad kinds of data model

Conceptual data model

The conceptual data model describes data in terms that reflect how users perceive and understand it. It is primarily concerned with meaning and the user’s view of the information, rather than with the technical details of storage.

It is also called a:

  • High-level model

  • Semantic model

  • Entity-based data model

This model is especially important during design because it captures the concepts that matter to users and the business.

Physical data model

The physical data model describes how data is stored in a computer system or server. It focuses on the implementation and storage details used by the DBMS and the underlying hardware.

It is also called a:

  • Low-level model

  • Internal data model

Implementation data model

The implementation data model provides an intermediate representation between the conceptual model and the physical model. It helps translate the concepts expressed in a human-oriented design into a form that can be implemented and stored by a computer system.

It is also called a representational data model.


Schemas, Schema Diagrams, and Database Instances

Database schema

A database schema is a description of a database. It specifies both:

  • Structure: How the database and its components are organized.

  • Constraints: The rules that data and database components must satisfy.

For example, a personal-details table might have fields for first name, last name, and date of birth. Its schema could specify the types or formats allowed for those fields, as well as any relevant rules.

Schema diagram

A schema diagram is a diagrammatic representation of a schema. It shows the database structure and may also communicate constraints, making the organization of the database easier to inspect.

Schema construct

A schema construct is a component or object within a schema. Depending on the context, it may refer to a specific database element, such as a row or column.

Database instance

A database instance is the actual data stored in the database at a particular moment. It is the database’s current contents, not its structural description.

A database instance is also called the state or occurrence of the database. It can change over time as data is added, modified, or removed. For example, the contents of a database on one date may differ from its contents on a later date.

The distinction is:

  • Schema: Describes the database’s structure and constraints.

  • Instance: The actual data present in the database at a particular time.

  • Schema construct: A component within the schema.


Three-Schema Architecture

The three-schema architecture organizes a database system into three levels. It is used in business and corporate DSS to separate what users see from the overall database design and the details of data storage.

External level

The external level consists of the views presented to individual end users or applications. Different users may have different views of the same database. These views may be similar or different, depending on what each user needs to see.

An external view describes the data as it is presented to a user, rather than how it is physically stored.

Conceptual level

The conceptual level describes the database’s overall logical organization. Its conceptual schema represents the designer’s view of the data and the relationships and rules that define the database.

The conceptual schema connects users’ views to the database as a whole.

Internal level

The internal level describes how the database is stored and managed within the computer system. Its internal schema concerns storage in the context of the chosen computer, operating system, and DBMS. Data may be held on non-volatile storage, such as a hard disk or solid-state drive.

Mappings between levels

Mappings translate representations between the three levels:

  • External/conceptual mapping: Connects an external user view to the conceptual schema. It relates what a user sees to the overall logical database design.

  • Conceptual/internal mapping: Connects the conceptual schema to the internal schema. It relates the logical database design to its physical storage and implementation.

In simplified form, the layers can be viewed as:

External views → Conceptual schema → Internal schema → Stored database

The architecture separates user-facing representations from logical design and physical storage. This makes it possible to describe the same underlying data differently for different users while maintaining a unified database design and storage implementation.


DBMS Languages

DBMS languages support the definition of database structures and views, the specification of storage, and the retrieval and updating of data. Four important language categories are DDL, SDL, VDL, and DML.

Data Definition Language (DDL)

A Data Definition Language (DDL) specifies database definitions, especially the conceptual schema. It provides constructs for expressing users’ concepts and defining the database’s structure and rules.

Some database systems also use DDL to specify external or internal schemas.

Storage Definition Language (SDL)

A Storage Definition Language (SDL) specifies the internal schema. It is used to describe how the database is stored internally.

Some DBMSs use a separate SDL for this purpose, while others use DDL for multiple schema levels.

View Definition Language (VDL)

A View Definition Language (VDL) specifies external schemas or views. It describes the representations of the database that are available to users or applications.

DBMSs differ in how they divide these responsibilities: some use distinct languages for conceptual definitions, views, and storage, while others use DDL for more than one level.

Data Manipulation Language (DML)

A Data Manipulation Language (DML) specifies database retrievals and updates. It is used to obtain data and to add, modify, or remove it.

DML can take either of two forms:

  • Data sublanguage: A data-manipulation component embedded in a general-purpose programming language. A programmer uses it within a language such as C++, Fortran, Python, Perl, or PHP.

  • Standalone data manipulation language: A language that can be used independently of a general-purpose programming language. A standalone DML is also known as a query language. SQL is an example.

A data sublanguage is associated with its host programming language. A standalone query language can be learned and used without embedding its operations in a particular general-purpose language.


High-Level and Low-Level DBMS Languages

DBMS languages can also be classified by how they express retrieval and manipulation.

High-level languages

A high-level DBMS language is also called a non-procedural or declarative language. SQL is a major example.

High-level languages are set-oriented: they work with collections of records rather than requiring the programmer to process each record individually. They allow users to describe the data they want to retrieve and, in the lecture’s framing, how it is to be retrieved, without specifying every low-level processing step.

Because they handle sets of data and hide many operational details, high-level languages are generally easier for people to use.

Low-level languages

A low-level DBMS language is also called a procedural language. It typically specifies processing one record at a time and provides more detailed instructions about how retrieval should occur.

Low-level approaches may require the programmer to specify constraints and control structures, such as loops. They offer greater control over processing and may be used to speed up particular operations or reduce computing overhead, but they require more detailed work from the programmer.

Key distinction

  • High-level, non-procedural languages: Set-oriented; generally easier to use because they abstract away many processing details.

  • Low-level, procedural languages: Often record-oriented; require more explicit instructions and may offer performance or control advantages in some cases.


Clarification: “F name”

In a personal-details example, F name is shorthand for first name, while L name is shorthand for last name. The schema should use clear field names, such as “First Name” and “Last Name,” or clearly define the abbreviations so their meanings are unambiguous.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent