Final Course Pack - DBMS - 11.08.2024
Final Course Pack - DBMS - 11.08.2024
FRAMEWORK
The Course Pack is a comprehensive and complete pedagogical guideline document that describes
the components of instruction delivery by a faculty member. It consists of the scheme of the course,
Course Overview, Course Objectives, Prerequisite course, Program-specific Outcomes (PSOs),
Course outcomes (COs), Bloom’s taxonomy (Knowledge Levels), Types of Courses, Course
articulation matrix, Course assessment patterns, Course content, Lesson Plan, Bibliography,
Problem-based learning/case-studies/clinical, and Student-Centered learning (self- learning
towards life-long-learning). It not only provides a uniform design of Course delivery across the
University but also ensures freedom and flexibility to introduce innovations in learning and teaching
and create vivid kinds of assessment tools (alternate assessment tools) by a faculty member.
The course pack is developed by the faculty member teaching a course. If more than one faculty
teaches the same course, all the faculty members teaching thecourse shall be formed as a cluster,
and a senior faculty member (Course-lead)lead the Course delivery design in a team effort. The
Course Pack provides ample scope and opportunity to bring innovations in teaching pedagogies
in aschool/department.
Hence, the Course pack is a comprehensive learning-teaching strategy framework to be followed by
all the faculty members in schools/departments in the university. It is not only a tool for measuring
the learning of a class but also analyses the achievement levels (learning outcomes of the course)
of all the students in a class in a continuous manner.
Practical
Practical
Tutorial 0 0
Tutorial
Theory
delivery
study
Self-
SEE
CIE
Practical 1 2
Self-study 0 7
Total 4 12 45 0 30 105 50% 50%
Course Lead Mr. Manikant Panthi Course Mr. Arunendra Mani Tripathi
Coordinator
Names Course Theory/ Practical Theory/ Practical
Instructors Mr. Tarun Kumar
Dr. T. Ganesh Kumar
Mr. Yashwant Soni
Dr. Aditya Kishore Saxena
Mr. P Selvaraj
Dr. Arvind Panwar
Mr. Hradesh Kumar
Dr. Sunil Kumar
Mr. Sugan Patel
Mr. A. Boobalan
Mr. Mahesh Kumar
Mr. Arunendra Mani Tripathi
Mr. Adarsh Kumar
Mr. Brajmohan Singh
Mr. Salman Khursheed Ahmad
Mr. Amit Yadav
Mr. Ankit Sharma
Ms. Indervati
Ms. Geeta Gayatri Behera
Ms. Kirti
Mr. Shiv Kumar Madeshwaran
Mr. M Umapathy
Mr. Rochak Swami
Ms. Manu Singh
Mr. Sandeep Kumar
Ms. Namrata Kumari
Mr. Satheesh Kumar
Mr. Nand Kumar Jyotish
Mr. Sheo Kumar
Ms. Nidhi Sharma
Ms. Sonia Kukreja
Mr. Rishav Raj
Mr. Soumalya Ghosh
Mr.Manikant Panthi
Ms. suman devi
Mr. Sundara Kumar
Ms. Swati Sharma
COURSEPACK
FRAMEWORK
COURSE OVERVIEW
This course introduces the core principles and techniques required to design and implement database systems. This course
focuses on relational database management systems, including database design theory: E-R modeling, data definition, and
manipulation languages, database security, and administration. It also covers essential DBMS concepts such as Transaction
Processing, Concurrency Control, and Recovery, various types of databases like distributed databases and, Client/Server.
Students undertake a semester mini project to design and build a simple database system and demonstrate competence with
the fundamental tasks involved with modeling, designing, and implementing a DBMS. It also provides students with
theoretical knowledge and practical skills using MySQL tool in the use of databases and database management systems in
information technology applications
PREREQUISITE COURSE
PREREQUISITE COURSE No
REQUIRED
If, yes please fill in the Details Prerequisite Prerequisite
course code course name
NA NA
COURSE OBJECTIVE
1. Students will familiar with basic concepts of databases and database management systems.
2. Students are able to understanding of design the entity relationship diagram the and concept of database.
3. Students are able to normalize various type of database system.
4. Students to explore and implement all the schemas on the SQL.
Ability to design and query relational databases using SQL, ensure data integrity, and
CO2 apply relational algebra and calculus concepts in practical scenarios.
PSO2: Demonstrate Engineering Practice learned through industry internship and research project to solve live
problems in various domains
COURSE ARTICULATIONMATRIX
PSO1
PSO2
PO10
PO11
PO12
PO1
PO2
PO3
PO4
PO5
PO6
PO7
PO8
PO9
COs#/POs
CO1 3 2 1 1 1
CO2 3 2 2 2 2 1
2 3 2 2 2 2 2
CO3
CO4 1 2 1 2 2 1
THEORY:
Introduction to Data Base management system: An overview of the database management system,
database system Vs file system, Database system concept and architecture, data model schema and
instances, data independence and database language and interfaces, data definitions language, Data
modeling using Entity Relationship (ER) model , Enhanced ER model, Overall Database Structure.
Domains, Relations and Keys: domains, relations, kind of relations, relational database, various types of
keys, candidate, primary, alternate and foreign keys. Relational Data Model and Language: Relational
data model concepts, integrity constraints, entity integrity, referential integrity, Key constraints, Domain
constraints, relational algebra, relational calculus, tuple, and domain calculus.
Introduction to SQL, DDL, DML and DCL, Types of SQL commands. SQL operators and their
procedures. Tables, views, and indexes. Queries and subqueries. Aggregate functions. Insert, update, and
delete operations, Joins, Unions, Intersection, Minus, Cursors, and Triggers. Database Design &
Normalization: Functional dependencies, normal forms, first, second, and third normal forms,
Normalization-Decomposition into BCNF.
PRACTICAL: Case Studies and Practical problem, Real-world Examples of data base Implementations.
COURSEPACK
FRAMEWORK
Competence to
18 Relational calculus Theory formulate Relational
Algebra & Relational
19 Characteristics of SQL, advantages of SQL Theory Calculus queries
1 L Draw an E-R diagram and convert entities and relationships to a relation table for a
given scenario. (Two assignments shall be carried out i.e., consider two different scenarios (e.g. bank,
College)
7 L For a given set of relation schemes, create tables and perform the following Queries:
a. Simple Queries
b. Queries with Aggregate functions (Max/Min/Sum/Avg/Count)
c. Queries with Aggregate functions (group by and having clause)
d. Queries involving- Date Functions, String Functions, Math Functions
COURSEPACK
FRAMEWORK
8 L For a given set of relation schemes, create tables and perform the following Queries:
a. Inner Join
b. Outer Join
c. Natural Join
9 L . For a given set of related tables perform the following: -
a. Creating Views
b. Dropping views
c. Selecting from a view
10 L Implementation of Group by & Having Clause, Order by Clause, Indexing.
11 L Given the table EMPLOYEE (EmpNo, Name, Salary, Designation, DeptID) write a
cursor to select the five highest-paid employees from the table.
BIBLIOGRAPHY
Text Book
1. Henry F Korth, Abraham Silberschatz, S. Sudarshan, “Database system concepts”, McGraw- Hill
2. Date C J, “An Introduction to Database Systems”, Addison Wesley
Reference Books
S. Problem based
No Learning
1 Draw an ER diagram for the Hospital database. Be sure to indicate the various attributes of each entity
and relationship set; also specify the key and participation constraints for each relationship set. Specify
any necessary overlap and cover constraints as well.
2 Consider the instance of the sample Students' relation.
1. Give an example of an attribute (or set of attributes) that you can deduce is not a candidate key, based
on this instance being legal.
2. Is there any example of an attribute (or set of attributes) that you can deduce is a candidate key, based
on this instance being legal?
3 Consider the relations between Students, Faculty, Courses, Rooms, Enrolled, Teaches, and Meets.
1. List all the foreign key constraints among these relations.
2. Give an example of a constraint involving one or more of these relations that is not a primary key or
foreign key constraint.
4 Write SQL for the following relational schema:
Emp(eid: integer, ename: string, age: integer, salary: real)
Works(eid: integer, did: integer, pct time: integer)
Dept(did: integer, dname: string, budget: real, managerid: integer)
5 Suppose that we have a ternary relationship R between entities sets A, B, and C such that A has a key
constraint and total participation and B has a key constraint; these are the only constraints. A has
attributes a1 and a2, with a1 being the key; B and C are similar. R has no descriptive attributes. Write
SQL statements that create tables corresponding to this information to capture as many of the constraints
as possible. If you cannot capture some constraint, explain why?
6 Consider the following relations containing airline flight information:
Flights (flno: integer, from: string, to: string, distance: integer, departs: time, arrives: time)
Aircraft (aid: integer, aname: string, cruisingrange: integer) Certified(eid: integer, aid: integer)
Employees (eid: integer, ename: string, salary: integer)
1. Find the eids of pilots certified for some Boeing aircraft.
2. Find the names of pilots certified for some Boeing aircraft.
3. Find the aids of all aircraft that can be used on non-stop flights from Bonn to Madras. 4. Identify the
flights that can be piloted by every pilot whose salary is more than $100,000.
5. Find the names of pilots who can operate planes with a range greater than 3,000 miles but are not
certified on any Boeing aircraft.
6. Find the eids of employees who make the highest salary.
7. Find the eids of employees who make the second highest salary.
8. Find the eids of employees who are certified for the largest number of aircraft.
9. Find the eids of employees who are certified for exactly three aircraft.
10. Find the total amount paid to employees as salaries.
7 Consider the following relational schema.
An employee can work in more than one department; the pct time field of the Works relation shows the
percentage of time that a given employee works in a given department.
Emp (eid: integer, ename: string, age: integer, salary: real)
Works (eid: integer, did: integer, pct time: integer)
Dept (did: integer, budget: real, managerid: integer)
Write the following queries in SQL:
1. Print the names and ages of each employee who works in both the Hardware department and the
COURSEPACK
FRAMEWORK
Software department.
2. For each department with more than 20 full-time-equivalent employees (i.e., where the part-time and
full-time employees add up to at least that many full-time employees), print the did together with the
number of employees that work in that department.
3. Print the name of each employee whose salary exceeds the budget of all of the departments that he or
she works in.
4. Find the managerids of managers who manage only departments with budgets greater than
$1,000,000.
5. Find the enames of managers who manage the departments with the largest budget.
8 Consider the instance of Sailors
Let us define instance S1 of Sailors to consist of the first two tuples, instance S2 to be the last two tuples,
and S to be the given instance.
(a) Show the left outer join of S with itself, with the join condition being sid=sid.
(b) Show the right outer join of S with itself, with the join condition being sid=sid.
(c) Show the full outer join of S with itself, with the join condition being sid=sid.
(d) Show the left outer join of S1 with S2, with the join condition being sid=sid.
(e) Show the right outer join of S1 with S2, with the join condition being sid=sid.
(f) Show the full outer join of S1 with S2, with the join condition being sid=sid.
9 Draw E-R diagram of following pair of entities (i)Customer & Account (ii)
Customer & Loan (iii) Doctor & Patient
11 Find the minimum number of tables required for the following ER diagram in relational
model-
12 Find the minimum number of tables required to represent the given ER diagram in
relational model-
13 Write the following queries in SQL, using the university schema. (We suggest
you actually run these queries on a database, using the sample data
that we provide on the Web site of the book, db-book.com. Instructions for
setting up a database, and loading sample data, are provided on the above
Web site.)
a. Find the titles of courses in the Comp. Sci. department that have 3
credits.
b. Find the IDs of all students who were taught by an instructor named
Einstein;make sure there are no duplicates in the result.
c. Find the highest salary of any instructor.
d. Find all instructors earning the highest salary (there may be more
than one with the same salary).
e. Find the enrollment of each section that was offered in Autumn 2009.
f. Find the maximum enrollment, across all sections, in Autumn 2009.
g. Find the sections that had the maximum enrollment in Autumn 2009.
14 Write Queries for the following requirements:
(i) Find the customer names and their loan numbers for all customers having a loan at
some branches.
(ii) Find the names of all branches that have greater assets than some branch located
in Lucknow.
(iii) Find the names of all customers whose street includes the substring “main”.
(iv) List in alphabetic order the names of all customers having a loan in “Knit
Campus” branch.
(v) Find all customers who have a loan, an account, or both.
(vi) Find all customers who have both a loan and an account.
(vii) Find all customers who have an account but no loan.
(viii) Find all customers who have both an account and a loan at the same branch.
Consider the bank database of Figure 2, where the primary keys are underlined. Construct the
following SQL queries for this relational database.
a. Find all customers of the bank who have an account but not a loan.
b. Find the names of all customers who live on the same street and in the same city as “Smith”.
c. Find the names of all branches with customers who have an account in the bank and who live in
“Harrison”
24 Let R = (A, B, C, D, E, F) be a relation scheme with the following dependencies-
C→F
E→A
EC → D
A→B
Find Candidate keys.
25 Consider the given schedule S and check if it is view serializable or not. If yes, then give the serial
Schedule: S : S1: R1(X) R1(Y) R2(X) R2(Y) W2(Y) W1(X).
26 Write SQL TRIGGER FOR database triggers to enforce data integrity and implement business rules.
27
a. Find the total number of people who owned cars that were involved in accidents in 2009.
b. Add a new accident to the database; assume any values for required attributes.
28 Consider the database available in the previous question & perform following queries.
a. Add a column to the table car.
b. Drop the column date from table accident
c. Modify the column location as location_Info
d. Rename table owns to owner
29
Self-Learning (it’s a typical course-based project to be carried out by a whole class in groups of four students
each; they should exhibit higher level BTLs)
The students, in a group, are expected to conceive an idea based on the content (objectives/outcomes) and apply
the suitable knowledge to demonstrate their learning.
A) SELF-LEARNING THROUGH MOOCs (Cognitive Skills):
1. Database Management System, By Prof. Partha Pratim Das & Prof. Samiran Chattopadhyay, IIT Kharagpur
https://onlinecourses.nptel.ac.in/noc20_cs60/preview
4. https://academy.oracle.com/