SQL - MySQL

Module 01 - Database Theory
1. Introduction to Databases2. DBMS Theory Concepts3. Types of Keys4. Database Relationships5. DBMS Interview Questions
Module 02 - CRUD Operations
1. Create - INSERT2. Read - SELECT3. Update - UPDATE4. Delete - DELETE5. Alter - ALTER TABLE
MySQL Playground
Profile
Akkal DhamiFull Stack Developer

Building modern web experiences with a focus on performance, scalability, and clean architecture.

© 2026 | Akkal Dhami | All rights reserved

Built with
byAkkal Dhami

Navigation

  • Projects
  • Dev Setup
  • Playbook
  • Templates
  • Networking
  • SQL - MySQL
  • SQL Playground
  • DSA
AKKAL DHAMIAKKAL DHAMIAKKAL DHAMI

Database Management Systems (DBMS)

In this module, we'll cover the fundamentals of database management systems (DBMS), including relational and non-relational databases, and their key concepts and features.

1. Introduction to Databases, SQL, and MySQL

A database is an organized place to store data so it can be saved, searched, and updated reliably.

A DBMS (Database Management System) is the software that actually stores, organizes, and lets you interact with a database. MySQL, PostgreSQL, and SQLite are all examples of a DBMS.

SQL (Structured Query Language) is the language used to talk to a relational database — to create tables, insert data, ask questions about it, and change it.


2. DBMS Theory Concepts

In this section, we'll cover the key concepts and theory behind DBMS, including relational and non-relational databases, and their key features and trade-offs.

  • Relational vs Non-Relational Databases
  • Keys
  • Normalization
  • ACID Properties
  • Indexes
  • Constraints

3. Types of Keys

Key TypeDefinitionExample
Candidate KeyAny column(s) that could be the primary keyid, employee_code, ssn
Primary KeyThe candidate key actually chosenid
Alternate KeyCandidate keys not chosen as primaryemployee_code, ssn
Super KeyAny set of columns that uniquely identifies a row, minimal or not(id, email)
Composite KeyA primary key made of multiple columns combined(book_id, genre_id)
Foreign KeyReferences a primary key in another tabledepartment_id → departments.id
Unique KeyEnforces no duplicates; multiple allowed per tableemail
Surrogate KeySystem-generated, no real-world meaningid INT AUTO_INCREMENT
Natural KeyMade from real-world, meaningful datassn, email

5. DBMS Interview Questions

In this section, we'll cover common interview questions and best practices for DBMS.

Module 02 - CRUD Operations