DBMS: BASIC INTRODUCTION TO A ‘RELATION’
This is my first article on this website. I hope to add more articles in the coming days, on various subjects. In this article I’m going to give a very basic introduction to the subject “Database Management System”. This subject is included in the syllabus of both the branches of IT and CSE, in Third Year, 2nd semester, i.e. Sixth Semester.
As of now, you classes might have been started and you may find this article familiar. But still I’ve started from level 0.
At first, I’m just copy pasting ( ctrl+c and ctrl+v
) the syllabus of the subject below. You can also get the syllabus from the link itself: http://wbut.ac.in/page.php?id=195. After that, I’ve provided an introduction to the very basic features of the subject without going into the LOOOOOONG THEORY parts.
< ———————————— START OF COPY PASTING —————————————- >
Database Management System
Paper Code: CS-601
Credits: 3
- Introduction:
Concept & Overview of DBMS, Data Models, Database Languages, Database Administrator, Database Users, Three Schema architecture of DBMS.
- Entity-Relationship Model:
Basic concepts, Design Issues, Mapping Constraints, Keys, Entity-Relationship Diagram, Weak Entity Sets, Extended E-R features.
- Relational Model:
Structure of relational Databases, Relational Algebra, Relational Calculus, Extended Relational Algebra Operations, Views, Modifications Of the Database.
- SQL and Integrity Constraints:
Concept of DDL, DML, DCL. Basic Structure, Set operations, Aggregate Functions, Null Values, Domain Constraints, Referential Integrity Constraints, assertions, views, Nested Sub-queries, Database security application development using SQL, Stored procedures and triggers.
- Relational Database Design:
Functional Dependency, Different anomalies in designing a Database., Normalization using functional dependencies, Decomposition, Boyce-Codd Normal Form, 3NF, Normalization using multi-valued dependencies, 4NF, 5NF
- Internals of RDBMS:
Physical data structures, Query optimization : join algorithm, statistics and cost bas optimization. Transaction processing, Concurrency control and Recovery Management: transaction model properties, state serializability, lock base protocols, two phase locking.
- File Organization & Index Structures:
File & Record Concept, Placing file records on Disk, Fixed and Variable sized Records, Types of Single-Level Index (primary, secondary, clustering), Multilevel Indexes, Dynamic Multilevel Indexes using B tree and B+ tree .
< —————————————- END OF COPY PASTING ——————————- >
Ok, so, why would we study this subject at all?
- Because, WBUT (
monsters
) syllabus makers have included this subject in the syllabus. And we need to ( bash them) get good grades in this subject as this is one of the most important subjects. - Also in the placement interviews they ask so many conceptual questions from this subject. So, we need to get good grasp over this subject.
- Today, there is not a single sector where DBMS is not used. Banks, Schools, Colleges, Govt. Offices, Railways, Airlines, Shops (Online as well as offline), Libraries – everywhere, DBMS plays a very important role.
- It reduces so much pen-and-paper-works = efficient utilization of time and energy ( = Saves papers too!! )
- Also, there is a good chance of making mistakes while doing the calculations manually. But DBMS eliminates that chance.
- What happens when you cannot find your phone which is hidden under piles of books or clothes? Well, what I do, is ring the phone from other’s phone. But what if a book is kept in a numbered shelf in a library? Books don’t make sounds!! ( Well, they just silently do their work excellently!! :) ). In that case, you can create a table in a paper-copy and can keep a record of the rack number as well as the shelf number against the name of the book. After all, it’s impossible for a librarian to remember where each-and-every book is kept. Even if one manages to remember, but what happens when a new librarian is appointed?
- So, you can definitely understand use of table-formats! But paper-copy?? Then, we will again have to keep track of those HELL LOT OF COPIES!! Then all our efforts will get wasted.
- So, we will keep them in a computer. But where? In an ordinary excel files? Definitely not!! Why?
- Because, those excel files (or ordinary file-processing systems) don’t do the “naukar - giri” ( i.e. they don’t run as per our COMMANDS !! ). So, we need such a system which would do the “naukar - giri” for us. :) Also, in ordinary file systems, we will have the HEADACHE of remembering HELL LOT OF FILE NAMES = Not very useful.
- For Example: Suppose I’m the owner of a bookshop. I have to keep track of the bookstore, i.e. how many books got sold, how many of which books are there in stock, the details of the workers (employees) of my shop etc. We will tell the system:
- “Go, get me the names of all the employees of my shop”.
- “Get me the name of the worker who gets the highest money.”
- “Bring me the list of names of the employees arranged in an alphabetical order.”
- “How much salary the employees get on an average?”
- So, we would need such a system which will FOLLOW our “COMMANDS”. DBMS wonderfully provides the platform to make the system do EXACTLY WHAT WE WANT.
- Also, it provides SECURITY too. As the owner of the shop, I may not wish my workers to access all information regarding the addresses, phone numbers, salaries of other workers. So, DBMS ‘Secures’ information too.
- Note that, we can NOT ONLY keep textual information (eg phone no., address etc.) in the “TABLE”s, but also FILES( mp3 track of the song “Lungi Dance”, Video track of “Lungi dance”, Shahrukh Khan’s high-resolution Photograph [in .jpg or .png or any format]) in those tables.
Ok, But what is this “TABLE”?
- Well, this is definitely not the “chair-table-wala” wooden table! You can think of a table as a box which has many grids – ‘ROWS’ and ‘COLUMNS’. Let’s take a look at the figure below (Figure 1).
Grids along vertical lines = COLUMNS
Grids along horizontal lines = ROWS

So, we can see from the figure that a table consists of ROWS and COLUMNS.
Formally, in DBMS, we call a table by the name “RELATION”. Why?
- Because, a table establishes a relation between the ROWS and the COLUMNS.
But how?
Let’s look at the following table.

In the above table, I have given some information. But these information are meaningless. Because you don’t know what do I mean by providing these information. You know that “Garia” is a name of the place. But What is the relation between “Garia” and “Smita Ghosh”. Is this the place where she works? Or is this the place where she lives? And what is the relation between the number 0001 and Smita Ghosh? So we need to establish a relation between these columns. We do this by putting a ‘header’ above each column. A header of this kind is called an ATTRIBUTE. See the table below:

Now, this is perfectly clear to you, that Smita Ghosh is an employee of an organization. Her employee_ID is 0001 and she lives at Garia.
The whole information provided in a row is called a ‘tuple’. Or in short, the rows are called TUPLES. For Example: {0001, Smita Ghosh, Garia} = this represents a TUPLE. Each of the data, i.e. “0001”, “Smita Ghosh”, “Garia” – these are the attribute values. Hence, a tuple represents relations among the attribute values.
# Some final words before ending this article:
Well, I need to clarify one thing. I will continue to upload more articles here. But this article is not a substitute to textbooks. This article will help you understanding the basic features of the subject before diving into the sea.
# Which book:
The names of the books which WBUT has referred are:
- Henry F. Korth and Silberschatz Abraham, “Database System Concepts”, Mc.Graw Hill.
- Elmasri Ramez and Novathe Shamkant, “Fundamentals of Database Systems”, Benjamin Cummings Publishing. Company.
- Ramakrishnan: Database Management System , McGraw-Hill
- Gray Jim and Reuter Address, “Transaction Processing : Concepts and Techniques”, Moragan Kauffman Publishers.
- Jain: Advanced Database Management System CyberTech
- Date C. J., “Introduction to Database Management”, Vol. I, II, III, Addison Wesley.
- Ullman JD., “Principles of Database Systems”, Galgottia Publication.
#My suggestion: Follow any one of the books and refer to other books for a particular topic if you need clearer concept over that topic. Most of the students, I have seen, uses Korth. Also Novathe and Ramakrishnan’s books are widely used too. And for the rest of the books enlisted – sorry, I don’t have any idea. I have not seen those books yet.. :( :(
Now, I prefer Novathe to Korth. Because Korth gives too much vast explanations and less examples. Novathe explains things with suitable and easy-to-grasp examples. Also I find the language of Novathe much more lucid as compared to Korth.
# Comments are welcome:
As this is my first article, so I already beg your pardon in advance for any mistakes made. I have tried to explain the things in my best possible way. But if any information given is wrong, comments and suggestions are welcome, so that I can do it better.
# Finally, I’d like to summarize the keywords of this article:
- DATABASE = I have nowhere in the article mentioned or explained this word. Well, as the name suggests, Database is something that holds or contains ‘data’ – and yes, a lot of data and here from the context of this subject, databases are collection of tables - like those of Table 1 (a) and (b) but in real life, the databases are very very large ones. It takes a lot of memory space.
Moreover, by the term relational database, we understand databases those are collection of relations. The term ‘relation’ is technically accepted in place of ‘table’.
- ATTRIBUTE = header of the column
- TUPLE = rows of the table
- RELATION = the table, as a whole, itself is called a relation, as it establishes a relation between the rows and columns of the table.
(To be continued… )
Author: Jnui Chattopadhyay

