×

DBMS Schema

Schema

  • It is a physical representation of data that appears in the database management system.
  •  In simple words, a schema is the structure of any database.
  • It defines how the data is stored in a database and relationship among those data, but it does not show the data available in those tables.
  • The database schema includes the definition of the database, record types (entities), and the components that make up those records.
  • Schema of a database does not change by performing certain operations like insertion, updation, and deletion, but it can only be modified or changed by modifying the DDL statements.
  • Database schema describes the integrity constraints of the database, domains of all attributes, foreign, and primary key of all the relations. 
  • Schema is of three types:
  1. Physical Schema: The overall design of a database at the physical level is called a physical schema. This schema describes how the data is stored in the secondary storage devices.
  2. Logical Schema: The overall design of a database at the logical level is called a logical schema. A database administrator (DBA) and the programmers used to work at this level.
  3. View Schema: The overall design of a database at a view level is called view schema. This schema generally describes the user’s interaction with the database system.

Example of Schema:

DBMS Schema

Subschema

  • A subschema is the sub-level or subset of the schema having the same features that a schema has.
  • This type of schema allows a user to view only that part of the database in which he is interested.
  • A language called the SDL (Subschema Definition Language) is used to specify a subschema in a database management system (DBMS).
  • For example: Suppose an employee table in a database where the programmer can access all fields of this table, but the user can access only two or three fields of it. Subschema describes both views of the database.

Instances

  • The data or information stored in the database at a particular moment is called an instance of the database.
  • An instance can also be called as a current state or database state.
  • The database schema defines the variables in tables that belong to a specific database; the values or records of these variables at a particular moment are called the instance of the database. 
  • Many instances can be constructed to correspond to a specific database schema.
  • Every time we insert, modify, or delete the value of data item in a record, one state of data changes into another state.

For Example:

DBMS Schema 1

Related Topics

Relational algebra in DBMS

Relational algebra in DBMS Relational algebra is a procedural query language used to retrieve the data from a database in a different way. It works on the relational model. It performs...

3 minutes read.

3- Tier Architecture in DBMS

Three-tier architecture is an application software architecture that arranges the output into three parts or tiers that are:  the presentation tier, where the user interacts with the application; the application...

4 minutes read.

Normalization in DBMS: 1NF, 2NF, 3NF, BCNF & 4NF with Examples

Normalization is a technique of organizing the data in the database. It is a systematic approach which is used to remove or reduce data redundancy in the tables and remove the...

7 minutes read.

Deadlock in DBMS

Deadlock in DBMS A deadlock is an unwanted condition in which two or more transaction are waiting indefinitely for one another to give up locks. It is said to be one of the...

3 minutes read.

Aggregate Functions in DBMS

Aggregate Functions in DBMS: Aggregate functions are those functions in the DBMS which takes the values of multiple rows of a single column and then form a single value by...

2 minutes read.

Checkpoint in DBMS

A checkpoint in DBMS is used to define a point of the transaction that is in a consistent state and then all the transactions will be in the committed state...

4 minutes read.

What is Advanced Database Management System

Before diving into the Advance Database management system, we need to learn about the database management system and its usage. Database management system Database Management System or DBMS in short implies the...

3 minutes read.

Redundancy in Database Management System

Redundancy in a database management system (DBMS) refers to the duplication of data within the database. This duplication can occur in multiple ways, such as having multiple copies of the...

13 minutes read.

ER Diagram for University Database in DBMS

What is an ER diagram? ER diagram, short for Entity Relationship Diagram, also known as ERD, is a diagram that shows the relationships of a set of entities stored in a...

9 minutes read.

Red-Black Tree Properties in DBMS

What is a Red-Black Tree? A red-black tree is a kind of self-balancing binary search tree. The extra bit that each node keeps denoting "color"-either "red" or "black"-is needed to keep...

3 minutes read.

DBMS Architecture

This is the first step when creating a database management system. The architecture of a database management system plays an important role in determining the actual design and layout of...

4 minutes read.

Concurrent Execution of Transaction

In the transaction process, a system usually allows executing more than one transaction simultaneously. This process is called a concurrent execution. Advantages of concurrent execution of a transaction Decrease waiting time or...

4 minutes read.

Fundamentals Of Distributed DBMS

Fundamentals of DDBMS Here we are going to talk about the Fundamentals of DDBMS. But first, we need to know about Distributed databases to understand the Distributed Database Management System. Distributed Database: It is...

4 minutes read.

Candidate Key in DBMS

Candidate key in DBMS: The candidate key is a single column or the set of columns that uniquely identifies the rows of data in the database table. It is a...

2 minutes read.

DBMS Schedule

A schedule is a process of combining the multiple transactions into one and executing the operations of these transactions in a predefined order. A schedule can have multiple transactions in it, each transaction...

2 minutes read.

How to draw ER-Diagram in DBMS?

Entity Relationship Diagrams, or ERDs, are diagrams that assist you in visualizing your database design. An ERD, also called anER diagram or ER model,describes data and how parts of the data interact. ERDs are crucial in database architecture and projects that call for...

9 minutes read.

ER Diagram for Student Management System in DBMS

Entity Relationship diagrams Entity Relationship Diagrams, or ER Diagrams for short, are diagrams that show the relationships among entity sets that are stored in databases. Alternatively said, ER diagrams assist in...

6 minutes read.

Evaluating DBMS

There are various database management systems available in the market. Each type has its features and can be used for varied purposes. The large number of DBMS makes it difficult...

4 minutes read.

Serializability in DBMS

Serializability in DBMS Serializability is the concept in a transaction that helps to identify which non-serial schedule is correct and will maintain the database consistency. It relates to the isolation property of transaction in...

3 minutes read.

Data Models in DBMS

Data Models in DBMS Data models are the models explaining the logical structure of the database systems. They describe the entities, attributes, and the relationship among the data elements of the...

8 minutes read.