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

Speaker 1Speaker 2

DBMS Concepts and Architecture

8:58
0:00-8:58
  1. Anna

    Welcome back. Today we’re continuing our look at database management systems, with a focus on why database design matters for business decision support systems. The guiding principle is GIGO: garbage in, garbage out. If a system stores poor or incorrect data, its results can be poor too.

  2. Simon

    So the aim is to understand how databases are described and organized before we move on to designing them. We’ll cover data models, schemas and instances, the three-schema architecture, and some important database languages.

  3. Anna

    Let’s begin with a data model. In simple terms, it is a set of concepts for describing a database’s structure, along with constraints the database should obey. Structure includes things such as tables and the data they contain; constraints include rules such as identifiers and relational keys.

  4. Simon

    And a data model isn’t just a picture of tables. It also guides how we work with the data. Data model operations are the operations used to retrieve information or update the database, using the model’s concepts and respecting its constraints.

  5. Anna

    Updates include adding data, modifying existing data, or removing data. Retrieval means extracting information from the database. The model’s structure and rules help ensure that these operations happen in a way that fits the database.

  6. Simon

    The lecture groups data models into three broad types relevant to decision support. First is the conceptual data model, also called a high-level, semantic, or entity-based model. It captures how users or people who create the data understand and perceive it.

  7. Anna

    That makes the conceptual model especially important to the designer. It describes the data in human terms, before we focus on how a computer will store it. The lecture also mentions that people sometimes call this an external model, though that name is used less often.

  8. Simon

    The second type is the physical data model, also called a low-level or internal model. Its concern is data storage: how the data is stored in a computer or server.

  9. Anna

    And between those two is the implementation data model, also known as the representational data model. It provides an intermediate way to translate between the conceptual model, which reflects a human understanding, and the physical model, which concerns computer storage.

  10. Simon

    Now let’s distinguish a data model from a database schema. In the lecture’s definition, a schema is a description of the database, including its structure and its constraints. So the schema tells us what the database is supposed to look like and what rules it should follow.

  11. Anna

    A schema can also be shown diagrammatically. That display is called a schema diagram. For example, imagine a personal-details table with fields for first name, last name, and date of birth. The diagram can show those fields and indicate details such as the kind of values or date format expected.

  12. Simon

    One small clarification about the example: ‘F name’ is shorthand for ‘First Name.’ If you’re writing your own notes or drawing a schema diagram, writing ‘First Name’ in full makes the meaning clear. The important point is that the diagram represents the structure and constraints.

  13. Anna

    The lecture also uses the term schema construct. That means a component or object within a schema, such as a particular row or column. It refers to one part of the schema, rather than the complete contents of the database at a given time.

  14. Simon

    That brings us to database instance. An instance is the actual data stored in the database at a particular moment. It is also called the state or occurrence of the database.

  15. Anna

    The instance can change over time as data is added, modified, or removed. So if we look at a database on one date and then look again later, the actual stored data may have changed. Those are different instances, even if the schema remains the description of the database’s structure and constraints.

  16. Simon

    That distinction is worth keeping straight: a schema construct is a component within the schema, while a database instance is the full collection of actual data at a particular time.

  17. Anna

    Next is the three-schema architecture, which the lecture identifies as commonly used in corporate and business decision support systems. At the outer level are external views. Different end users can have different views of the data, though their views can also be the same.

  18. Simon

    Those external views connect to the conceptual schema. The conceptual schema represents the database at the conceptual level—the designer’s overall, higher-level description of the data. The external views are mapped to that conceptual level through what the lecture calls the external-conceptual mapping.

  19. Anna

    Below the conceptual schema is the internal schema, which describes the database at the internal level. The conceptual schema and internal schema are connected through the conceptual-internal mapping. Together, these mappings connect what users see with how the database is represented and stored.

  20. Simon

    The internal side depends on the computer, operating system, and database management system being used. It ultimately relates to storage on a persistent medium, such as a hard disk or solid-state drive. So the architecture separates user views, the overall conceptual description, and the internal storage level.

  21. Anna

    Let’s move to database languages. The lecture describes four important kinds in relation to the schemas. First is the Data Definition Language, or DDL. Its main role is to specify the conceptual schema and provide a way to capture users’ concepts.

  22. Simon

    Some database systems also use DDL to specify external or internal schemas, so its role can vary by system. The second language discussed is the Storage Definition Language, or SDL, whose purpose is to specify the internal schema—how the data is stored.

  23. Anna

    Third is the View Definition Language, or VDL, which is used to specify the external schema, or user views. Depending on the database system, these roles can be divided among DDL, SDL, and VDL, or DDL may be used for more than one schema level.

  24. Simon

    The fourth is the Data Manipulation Language, or DML. It handles database retrievals and updates. In other words, it provides the means to get information from the database and to add, modify, or remove data.

  25. Anna

    The lecture divides DML into two forms. One is a data sublanguage embedded in a general programming language. Languages such as C++, Fortran, Python, Perl, or PHP can be used with a data sublanguage for database manipulation.

  26. Simon

    The other form is a stand-alone data manipulation language, often called a query language. SQL—Structured Query Language—is the example given. Unlike an embedded sublanguage, it is treated here as independent of a particular general programming language.

  27. Anna

    There’s another way to classify database languages: by how they are used. High-level DBMS languages are also called non-procedural or declarative languages. SQL is the main example in the lecture.

  28. Simon

    These high-level languages are set-oriented. They let you specify what data you want and how it should be retrieved as a set, rather than spelling out each record’s processing step by step.

  29. Anna

    Low-level DBMS languages, by contrast, are procedural. They specify one record at a time and describe how to retrieve the data in more detail, including constraints and associated loops.

  30. Simon

    That extra detail can make low-level languages more demanding to work with, while high-level languages are generally easier for people to use. The lecture gives speed and lower computing overhead as reasons someone might choose a low-level language to expedite processing.

  31. Anna

    So the key ideas fit together: data models describe structure and rules; schemas describe the database’s structure and constraints; instances are the actual data at a particular moment; and the three-schema architecture separates user views, the conceptual description, and internal storage.

  32. Simon

    And the language distinctions tell us how those levels and the data itself can be defined or manipulated. DDL, SDL, and VDL relate to schema definition, while DML supports retrieval and updates; high-level and low-level describe different styles of expressing database work.

  33. Anna

    These fundamentals prepare us for the next steps described in the lecture: conceptual database design, ER diagrams, translating an ER diagram into a schema diagram, relevant aspects of normalization, and then a quick introduction to SQL for creating, loading, and manipulating tables.

  34. Simon

    After that, the course plans a brief primer on big data. For now, the central lesson is to design carefully and keep the data meaningful—because the quality of decision support depends on the quality of the data going in.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent