Database Management Systems Overview


Database Management Systems Overview

Anna
Welcome to the IIT Madras online BSc program and to this course on database management systems. Our guide is Professor Partha Pratim Das, who teaches in the Computer Science and Engineering Department at IIT Kharagpur and has taught for several decades. He describes this program as a unique opportunity: the first time students in India can earn an online BSc degree from an IIT.

Michael
And this opening module is our orientation. We’ll look at why databases matter, what background knowledge will help, how the 12-week course is organized, and which textbook supports it. The goal is not just to recognize databases in everyday life, but to prepare for studying them in greater depth as the course progresses.

Anna
Let’s begin with what a database management system is for. It stores information about some enterprise—but “enterprise” is broad. It could mean a small business, a bank, a nation, a global organization, a small group, or even an individual. When an entity needs to collect related data, process it with programs, and work with it conveniently and efficiently, a database system can provide that environment.

Michael
Banking is an obvious example. Net banking and services such as UPI, Paytm, BHIM, and Google Pay rely on large database applications behind the scenes. Reservation systems for airlines and railways, including IRCTC, are other important examples, because they manage information and transactions that people depend on.

Anna
Universities use databases too. Admissions, registration, examinations, grading, and other academic processes may be handled through an ERP system. A university database can keep track of students, faculty, courses, instructors, timetables, and classrooms; register students for courses; produce class rosters; and record grades or calculate grade point averages.

Michael
And databases are just as central to commerce and organizations. E-commerce retailers such as Amazon, eBay, and Snapdeal use them, as do applications in manufacturing, human resources, and travel. Database skills therefore matter across many industries, including IT infrastructure, IT applications, and business process outsourcing.

Anna
Some database applications are less obvious. Email services such as Gmail, Yahoo Mail, and Hotmail manage messages, contacts, and information about what has been sent and received. Social networks and communication tools—including Facebook, Instagram, Twitter, WhatsApp, and Telegram—also need databases. They’re woven into so many everyday services that it’s hard to isolate just a few examples.

Michael
That broad use explains why the course covers more than simply working with stored information. Database programming, database design, and database administration are all valuable skills. To see why specialized database systems are needed, it helps to compare them with the simpler approach of putting data in ordinary files.

Anna
A computer’s file system lets us organize documents in files and folders, including folders nested in a hierarchy. Data can be stored in files as well. A familiar example of a simple, flat-file format is CSV—comma-separated values—where commas separate values for different fields. It can be a convenient way to share small amounts of data, but using files alone creates serious problems as applications grow.

Michael
One problem is redundancy and inconsistency. The same information may need to be copied into multiple files, which duplicates data and makes it harder to keep everything aligned. If someone updates one copy but forgets another, the records disagree. Another problem is access: a CSV can be opened as text or viewed as a table in a spreadsheet, but it’s difficult to manage and retrieve information automatically in a flexible way.

Anna
Data isolation is related. When information is spread across multiple files and formats, bringing it together and keeping it consistent becomes difficult. Integrity is another challenge: rules about which data values are allowed must be respected. For example, a bank may require an account to maintain a minimum balance, so a withdrawal should not take the balance below that limit.

Michael
With a file-based approach, that rule can be buried in program code, making it difficult to maintain reliably. A database system is intended to help manage these kinds of requirements, along with more demanding issues such as atomicity, concurrent access, and security.

Anna
Atomicity means that an operation that must preserve consistency should happen completely or not happen at all. Imagine paying a friend 100 rupees from your bank account. The transaction needs to debit your account and credit your friend’s account. If the debit succeeds but the system fails before the credit, the money has left one account without reaching the other.

Michael
So the two parts have to be treated as one complete transaction, rather than as unrelated steps that might stop halfway through. The same idea applies to whatever logging accompanies the operation: the transaction’s work needs to be handled together so the system doesn’t leave an inconsistent result.

Anna
Concurrency is the challenge of many people using the same system at the same time. Millions of users may access a system from different locations. Suppose two people try to reserve the last available train berth simultaneously. The system has to handle the competition fairly and ensure that the berth is assigned to only one person, not both.

Michael
And security is essential because information systems face risks such as spyware and identity theft. Atomicity, concurrency, and security are among the finer challenges that are difficult to manage with file-based data handling. Database systems are designed to address these problems as well as the earlier issues of redundancy, access, isolation, and integrity.

Anna
Now let’s turn to preparation. The essential mathematical background begins with set theory: understanding sets, membership, subsets and supersets, power sets, and universal sets. You should also know operations such as union, intersection, complement, set difference, and Cartesian product. De Morgan’s laws will be used frequently.

Michael
Relations and functions are also important. Be comfortable with relations built from sets, binary relations and ordered pairs, and terms such as domain, range, image, and pre-image. You should understand inverses and properties of relations, as well as what functions are and their properties. The discrete mathematics material and the earlier Mathematics for Data Science 1 course may provide the needed review.

Anna
You’ll also need propositional logic, which is closely connected to Boolean algebra. Review truth values and truth tables, along with conjunction, disjunction, negation, implication, and equivalence. The course also mentions closure and closure under an operation, so those ideas should be familiar too.

Michael
Predicate logic is another important prerequisite. It extends beyond statements about a particular person or object by using quantifiers. “For all” expresses a property applying across a collection, as in “all men are mortal”; an existential quantifier expresses that something exists, as in “for every child, there is a mother.” You should be familiar with both universal and existential quantification, because a quick recap during the course may not be enough to use them confidently.

Anna
Data structures are essential as well. Database ideas make extensive use of arrays and lists, and especially search structures: binary search trees, other search trees, balanced trees, B-trees, hashing, and hash maps. You don’t need to focus on more esoteric structures such as splay trees, but a solid grasp of the basic structures will be critical.

Michael
Python is another essential preparation. Programming in Python will be a staple of the course, and the existing Programming in Python course should provide a foundation. Additional topics, such as Python libraries and database connectivity, will be covered here, but the instructor recommends aiming for proficiency—not just familiarity—and practicing reading and writing Python code.

Anna
There are also desirable prerequisites that are helpful but not essential. Algorithms and programming in C can make some database algorithm issues easier to understand, especially sorting and searching. C won’t be used much in the course, but those skills can still be useful beyond this subject.

Michael
Object-oriented analysis and design, or object-oriented programming, is another helpful background. It treats data elements as units described by properties and relationships. That perspective overlaps in useful ways with database system design, while also differing in significant ways. Familiarity with languages such as Java or C++ can help, but this background is not required.

Anna
The course runs for 12 weeks, with five modules each week, for a total of 60 modules. Weeks one through eight focus primarily on application programming—the comparatively simpler side of database management systems and an area needed by many people in industry. Students interested in application-programming roles should pay particular attention to that material.

Michael
Weeks nine through twelve move into database administration and design. Those areas cover advanced tasks and can lead to more specialized, and often better-paying, roles. Together, the two parts give the course its wider scope: first the application-facing work, then the more advanced design and administration topics.

Anna
The recommended textbook is by Silberschatz, Korth, and Sudarshan. The course material is based on the sixth edition, though the seventh edition can also be used; it includes some additional material that students will need to skip. The course selects topics rather than covering everything in either edition.

Michael
It’s a useful book to have because course modules will refer to it frequently, and it provides material for further study and practice. So the main takeaway from this first module is that databases support an enormous range of modern applications, while file-only approaches struggle with reliability, coordination, and protection. With the mathematical, programming, and data-structure foundations in place, we’re ready to begin the actual database material in the next module.

Ask anything
We've read this whole study set, so questions about it get the best answers.