Free tutorials & notes in Hindi & English · Clean code examples 🧰 Free PDF & Image Tools →
🗄️ Unit 4 – Database Concepts & SQL  ·  Lesson 14

Database Concepts & DBMS

A school office story

A school keeps student details in separate files: the admission clerk has one spreadsheet, the fee clerk another and the library a third. When Riya moves house, her new address is updated in the admission file only. Next month the fee receipt goes to the old address and the library sends a notice there too. This is the problem databases solve.

admission.xlsxnew addressfees.xlsxold address ✘library.csvold address ✘
Same data kept in three files – and now they disagree

File system and its limitations

In a file system, data is stored in separate files managed by individual programs. It works for small tasks but has serious limitations:

📑
RedundancySame data repeated in many files; wastes storage.
⚠️
InconsistencyCopies do not match after one is updated.
🔍
Difficult accessNeed a new program for every new question.
🧩
Data isolationData scattered in different formats.
🔓
Poor securityHard to give each user only the data they need.
👥
No sharing controlTwo users editing at once can corrupt data.
Problems with a file system

Database and DBMS

A database is an organised collection of related data stored so that it can be easily accessed, managed and updated. A Database Management System (DBMS) is the software that creates and manages the database and lets users and programs work with it.

Users and applicationsoffice staff, school website, mobile appDBMS softwareMySQL – checks permissions, runs queries, keeps data consistentDatabasetables: STUDENT, FEE, LIBRARY – one copy of each fact
Everyone reaches the data through the DBMS

Now Riya's address is stored once in a STUDENT table; the fee and library sections refer to her roll number. Update it once and everyone sees the new address.

Key DBMS terms

TermMeaning
Database schemaThe design or structure of the database — tables, columns, types and relationships.
Data constraintA rule that data must follow, e.g. marks between 0 and 100, roll number cannot be empty.
Meta-data (data dictionary)"Data about data" — column names, data types, constraints.
Database instanceThe actual data in the database at a particular moment.
QueryA request to the database to get or change data (written in SQL).
Data manipulationInserting, updating, deleting and retrieving data.
Database engineThe core part of the DBMS that stores and processes the data.

Advantages of DBMS

File system

  • Data repeated in many files
  • Copies may disagree
  • New program for each new report
  • Weak security, no access control
  • Backup is manual

DBMS

  • Redundancy controlled – store once
  • Consistency – one update everywhere
  • Easy queries with SQL
  • User accounts and permissions
  • Backup, recovery and multi-user control
Why organisations move to databases

Where databases are used

🚆
Railway reservationTrains, seats, passengers, payments.
🏦
BankingAccounts, transactions, loans.
🛍️
Online shoppingProducts, orders, customers, reviews.
🏥
HospitalsPatients, doctors, appointments, bills.
🎓
SchoolsStudents, attendance, marks, fees.
📱
Social mediaUsers, posts, likes, messages.
Databases behind everyday apps

Popular DBMS software

Most databases today are relational (store data in tables). Popular RDBMS: MySQL (free, open source — used in this course), PostgreSQL, Oracle, Microsoft SQL Server, SQLite (inside mobile apps) and MariaDB.

Summary & practice

  • File systems suffer from redundancy, inconsistency, difficult access, isolation and poor security.
  • Database = organised related data; DBMS = software that manages it.
  • Terms: schema, constraint, meta-data, instance, query, data manipulation, engine.
  • DBMS controls redundancy, keeps consistency, gives security and easy querying.
✅ Practice

1) A shop keeps a customer's phone number in the billing file and in the delivery file. Name the two problems that can arise. 2) List four tables a library database might have. 3) What is meta-data?

Answers: 1) Data redundancy and data inconsistency. 2) BOOK, MEMBER, ISSUE, AUTHOR.

Frequently Asked Questions

What is data redundancy?
The same data stored in more than one place, for example a student’s address saved in both the fee file and the library file. It wastes space and can lead to inconsistency.
What is data inconsistency?
When copies of the same data do not match, e.g. the address is updated in the fee file but not in the library file.
What is a DBMS?
Database Management System — software such as MySQL, Oracle or PostgreSQL that lets users create, store, update, query and protect a database.
← Class 11 Informatics Practices
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।

Next topicRelational Model & Keys Your progress: 14 / 20 (70%) · Lesson 15 / 20 Continue →

How was this lesson?

Your feedback helps us make the content better.

Write a review or suggestion (optional)

After approval, your name and city may appear publicly with your review. Please do not write your email or phone number.

▶ Video lesson

RDBMS Part 3 – Class XI Commerce IT

Video lesson on Relational Database Management Systems (RDBMS) for Class XI Commerce IT students, by CodingEasily.

RDBMS Part 3 – Class XI Commerce IT – video thumbnailRDBMS Part 3 – Class XI Commerce IT

▶ Subscribe on YouTube