Skills101

DBMS & SQL · Lesson 1 of 13 · Updated ·

Introduction to DBMS — Databases, Tables and Why Not Just Files?

A database is an organised collection of data. A DBMS (Database Management System) is the software that stores it, keeps it correct and lets many people use it safely at the same time. MySQL, PostgreSQL, Oracle and SQL Server are popular DBMSs.

1. Why not just use files or Excel?

Imagine a college keeping student records in separate Excel files for each department.

Problem with filesHow a DBMS solves it
Redundancy — the same student's address in 5 filesstore each fact once and link it
Inconsistency — address updated in one file, not othersone copy → always consistent
Hard to search — "students from Jaipur with CGPA > 8"one SQL query
No concurrency control — two people edit at once, one loses worktransactions and locks
No security — anyone with the file sees everythingusers, roles and permissions
No recovery — laptop crash = data gonebackups, logs, crash recovery

2. Relational databases: everything is a table

A table called students with columns roll_no (primary key), name, city and cgpa; each row is one student

In a relational database (RDBMS), data lives in tables (also called relations):

WordAlso calledMeans
Tablerelationa set of rows about one kind of thing
Rowrecord, tupleone item (one student)
Columnfield, attributeone property (name, city)
Domain—allowed values of a column (e.g. CGPA 0–10)
Degree—number of columns
Cardinality—number of rows
Schema—the structure: tables, columns, types, keys

Tables are linked through keys (lesson 3), and we talk to them using SQL (lesson 5 onwards).

3. Levels of a DBMS (three-schema architecture)

  1. External / view level — what each user sees (a student sees only their own marks).
  2. Logical / conceptual level — the full set of tables and relationships.
  3. Physical / internal level — how data is stored on disk (files, indexes).

This separation gives data independence: you can change storage without changing applications.

4. Who uses a DBMS?

  • End users — use apps (your banking app).
  • Developers — write SQL in applications.
  • DBA (Database Administrator) — manages performance, backups, security.

5. SQL vs NoSQL in one table

SQL (relational)NoSQL
Structurefixed tables and schemaflexible: documents, key-value, graphs
ExamplesMySQL, PostgreSQL, OracleMongoDB, Redis, Cassandra
Strengthconsistency, joins, transactionsscale, flexible data
Typical usebanking, orders, college recordscaching, catalogues, chat, analytics

Most freshers' jobs use SQL databases — that's what this subject teaches.

Common mistakes

  • Saying "DBMS and database are the same". The database is the data; the DBMS is the software.
  • Mixing up degree (columns) and cardinality (rows).

Quick recap

  • DBMS = software that stores data safely and lets many users query it.
  • Files cause redundancy, inconsistency and no security; a DBMS fixes these.
  • Relational model: tables (relations), rows (tuples), columns (attributes).
  • Three levels: view, logical, physical → data independence.

Practice what you learned

📝 Quiz: DBMS Introduction5 questions · instant answers & explanations · +10 XP · counts towards your free certificateTake the quiz →