Skip to the content.

Introduction

DBMS stands for Database Management System. We can break it like this DBMS = Database + Management System. Database is a collection of data and Management System is a set of programs to store and retrieve those data. Based on this we can define DBMS like this: DBMS is a collection of inter-related data and set of programs to store & access those data in an easy and effective manner.

Need Of DBMS

Database systems are basically developed for large amount of data. So we need to optamize two feutures

Drawbacks of File system

Advantage of DBMS over file system

Disadvantages of DBMS:

Architecture

single tier

two-tier

three-tier

DBMS Three Level Architecture (3 tier)

  1. External Level
    • this is the view level
    • which is on client side
    • Ex : React App
  2. Conceptual level
    • Logical level
    • We write core logics here
    • We specify access to different people here
    • Duty of Database Administrator
    • Ex : Creating tables and db part of nodejs App
  3. Internal level
    • The physical Layer
    • Core Implementation
    • Duty of database system core desinger
    • Ex : As a part of normal app development we dont use this

Abstraction

Schema

Instance

Database Languages

  1. Data Definition Language (DDL)
    • Used to create the schema, tables indexes etc
    • CREATE ALTER DROP TRUNCATE RENAME COMMENT
  2. Data Manipulation Language (DML)
    • Used to add and manipulate data
    • SELECT INSERT UPDATE DELETE
  3. Data Control language (DCL)
    • Used to define access to users
    • GRANT REVOKE
  4. Transaction Control Language(TCL)
    • The changes in the database that we made using DML commands are either performed or rollbacked using TCL.
    • COMMIT ROLLBACK