DBMS Concepts

DBMS Tutorial Components of DBMS. Applications of DBMS The difference between file system and DBMS. Types of DBMS DBMS Architecture DBMS Schema Three Schema Architecture. DBMS Languages.

DBMS ER Model

ER model: Entity Relationship Diagram (ERD) Components of ER Model. DBMS Generalization, Specialization and Aggregation.

DBMS Relational Model

Codd’s rule of DBMS Relational DBMS concepts Relational Integrity Constraints DBMS keys Convert ER model into Relational model Difference between DBMS and RDBMS Relational Algebra DBMS Joins

DBMS Normalization

Functional Dependency Inference Rules Multivalued Dependency Normalization in DBMS: 1NF, 2NF, 3NF, BCNF and 4NF

DBMS Transaction

What is Transaction? States of transaction ACID Properties in DBMS Concurrent execution and its problems DBMS schedule DBMS Serializability Conflict Serializability View Serializability Deadlock in DBMS Concurrency control Protocols

Difference

Difference between DFD and ERD

Misc

Advantages of DBMS Disadvantages of DBMS Data Models in DBMS Relational Algebra in DBMS Cardinality in DBMS Entity in DBMS Attributes in DBMS Data Independence in DBMS Primary Key in DBMS Foreign Key in DBMS Candidate Key in DBMS Super Key in DBMS Aggregation in DBMS Hashing in DBMS Generalization in DBMS Specialization in DBMS View in DBMS File Organization in DBMS What Is A Cloud Database What Is A Database Levels Of Locking In DBMS What is RDBMS Fragmentation in Distributed DBMS What is Advanced Database Management System Data Abstraction in DBMS Checkpoint In DBMS B Tree in DBMS BCNF in DBMS Advantages of Threaded Binary Tree in DBMS Advantages of Database Management System in DBMS Enforcing Integrity Constraints in DBMS B-Tree Insertion in DBMS B+ Tree in DBMS Advantages of B-Tree in DBMS Types of Data Abstraction in DBMS Levels of Abstraction in DBMS 3- Tier Architecture in DBMS Anomalies in Database Management System Atomicity in Database Management System Characteristics of DBMS DBMS Examples Difference between Relational and Non-Relational Databases Domain Constraints in DBMS Entity and Entity set in DBMS ER Diagram for Banking System in DBMS ER Diagram for Company Database in DBMS ER Diagram for School Management System in DBMS ER Diagram for Student Management System in DBMS ER Diagram for University Database in DBMS ER Diagram of Company Database in DBMS Er Diagram Symbols and Notations in DBMS How to draw ER-Diagram in DBMS Integrity Constraints in DBMS Red-Black Tree Deletion in DBMS Red-Black Tree Properties in DBMS Red-Black Tree Visualization in DBMS Redundancy in Database Management System Secondary Key in DBMS Structure of DBMS 2-Tier Architecture in DBMS Advantages and Disadvantages of Binary Search Tree Closure of Functional Dependency in DBMS Consistency in Database Management System Durability in Database Management System ER Diagram for Bank Management System in DBMS ER Diagram for College Management System in DBMS ER Diagram for Hotel Management System in DBMS ER Diagram for Online Shopping ER Diagram for Railway Reservation System ER Diagram for Student Management System in DBMS Isolation in DBMS Lossless Join and Dependency Preserving Decomposition in DBMS Non-Key Attributes in DBMS Data Security Requirements in DBMS DBMS functions and Components What is Homogeneous Database? DBMS Functions and Components Advantages and Disadvantages of Distributed Database Relational Database Schema in DBMS Relational Schema Transaction Processing in DBMS Discriminator in DBMS

DBMS Languages

User can access, update, delete, and store data or information in the database using database languages. The following are the databases languages in the database management system:

  1. Data Definition Language
  2. Data Manipulation Language
  3. Data Control Language
  4. Transaction Control Language
DBMS Languages

Data Definition Language (DDL)

Data Definition Language is used for defining the structure or schema of the database. It is also used for creating tables, indexes, applying constraints, etc. in the database.
The main purpose of DDL is to store the information of metadata like the number of schemas and tables, their names, indexes, constraints, columns in each table, etc. The result of Data Definition Language statements will be a set of tables which are stored in a special file called data directory or data dictionary.
This language is used by the conceptual schema to access and retrieve the records from/to the database respectively, where these records describe entities, relationship, and attributes.

 There are following Data Definition Languages (DDL) Commands:

  • Create: This command is used to create a new table or a new database.
  • Alter: This command is used to alter or change the structure of the database table.
  • Drop: This command is used to delete a table, index, or views from the database.
  • Truncate: This command is used to delete the records or data from the table, but its structure remains as it is.
  • Rename: This command is used to rename an object from the database.
  • Comment: This command is used for adding comments to our table.

Data Manipulation Language (DML)

Data Manipulation Language is a language used to access or manipulate the data in the database. In simple words, this language is used to retrieve the data from the database, insert new data into the database, and delete the existing data from the database.

Data Manipulation Language is mainlyof two types:

  • Procedural DML: This type of DML describes what data is to be accessed and how to get that data.
  • Declarative DML or Non-procedural DML: This type of DML only describes what data is to be accessed without specifying how to get it.

There are following Data Manipulation Language (DML) Commands:

  • Select: This command is used to retrieve or access the data from the database table.
  • Insert: This command is used to insert the records into the table.
  • Update: This command is used to change/update the existing data in a table.
  • Delete: This command is used to delete one or all the existing records from the table.

Data Control Language

DCL is used to access the stored or saved data. It is mainly used for revoking and granting user access on a database. In the Oracle database, this language does not have the feature of rollback. It is a part of SQL.

There are following Data Control Language (DCL) Commands:

  • Grant: This command allows user’s access privileges to the database.
  • Revoke: This command removes the accessibility of users from the database objects.

Transaction Control Languages

Transaction Control language is a language which manages transactions within the database. It is used to execute the changes made by the data manipulation language (DML) statements.

There are following Transaction Control Language (TCL) Commands:

  • Commit: This command is used to save the transactions in the database.
  • Rollback: This command is used to restore the database to that state which was last committed.