How DBMS organises and manages data, the relational model's key terms, and the basics of SQL commands.
A Database Management System (DBMS) is software that stores, organises, and manages data efficiently, allowing users to create, read, update, and delete data without dealing directly with the underlying file structure.
| Problem with File Systems | How DBMS Solves It |
|---|---|
| Data redundancy (same data stored multiple times) | Centralised storage minimises duplication |
| Data inconsistency | Single source of truth keeps data consistent |
| Difficult concurrent access | DBMS manages multiple users accessing data simultaneously |
| Weak security | DBMS provides authentication and access-control mechanisms |
| Term | Meaning |
|---|---|
| Table (Relation) | A structured set of data organised in rows and columns |
| Row (Tuple/Record) | A single entry in a table |
| Column (Attribute/Field) | A specific category of data in a table |
| Primary Key | A column (or set of columns) that uniquely identifies each row in a table — cannot be NULL or duplicate |
| Foreign Key | A column that references the Primary Key of another table, establishing a relationship between tables |
| Candidate Key | Any column (or set) that could qualify as a Primary Key |
Normalization is the process of organising database tables to minimise data redundancy and avoid update/insert/delete anomalies, done through a series of "normal forms."
| Normal Form | Key Rule |
|---|---|
| 1NF (First Normal Form) | Each column must hold atomic (indivisible) values — no repeating groups |
| 2NF (Second Normal Form) | Must be in 1NF; all non-key attributes fully depend on the entire primary key |
| 3NF (Third Normal Form) | Must be in 2NF; no transitive dependency (non-key attributes shouldn't depend on other non-key attributes) |
SQL is the standard language used to communicate with relational databases, divided into categories based on function.
| Category | Full Form | Commands | Purpose |
|---|---|---|---|
| DDL | Data Definition Language | CREATE, ALTER, DROP | Defines/modifies database structure (tables, schemas) |
| DML | Data Manipulation Language | INSERT, UPDATE, DELETE | Manipulates the actual data within tables |
| DQL | Data Query Language | SELECT | Retrieves/queries data |
| DCL | Data Control Language | GRANT, REVOKE | Controls access permissions |
| TCL | Transaction Control Language | COMMIT, ROLLBACK | Manages database transactions |
| DBMS | Developer/Type |
|---|---|
| MySQL | Open-source, owned by Oracle |
| Oracle Database | Proprietary, Oracle Corporation |
| MS SQL Server | Proprietary, Microsoft |
| MongoDB | Open-source, NoSQL (non-relational) database |
This free chapter covers the key concepts. For complete coverage with 500+ MCQs, mock tests, and previous year analysis — grab the premium eBook.
📚 Browse Premium eBooks →