0% found this document useful (0 votes)
42 views5 pages

DBMS

The document outlines a Database Management Systems course, detailing its structure, objectives, and modules. It covers key topics such as database design, SQL, transaction management, and practical applications through SQL queries. The course aims to equip students with the skills to design and implement database systems effectively.

Uploaded by

Mohan K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views5 pages

DBMS

The document outlines a Database Management Systems course, detailing its structure, objectives, and modules. It covers key topics such as database design, SQL, transaction management, and practical applications through SQL queries. The course aims to equip students with the skills to design and implement database systems effectively.

Uploaded by

Mohan K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

SEMESTER – IV

Course Name : Database Management Systems Course Code: 21IS43


Number of Lecture
: 03 CIE Marks: 50
Hours / Week
Number of Tutorial
/ Practical Hours / : 00 SEE Marks: 50
Week
Total Number of
Lecture +
: 64 SEE Duration: 03 Hrs.
Tutorial/Practical
Hours
L:T:P : 3:0:2 Credits: 04
Course Prerequisites:
A Good understanding of basic computer concepts and set theory.
Course Overview
The course provides fundamental understanding of database management systems, query retrieval,
normalization, and transaction management.
COURSE LEARNING OBJECTIVES (CLOs)
● Understand basic programming concepts Identify and define the information that is needed to design
a database management system for a given problem.
● Understand the core terms, concepts, and tools of relational database management systems.
● Build a database management system that satisfies relational theory and provides users with business
queries, forms, and reports.
● Learning the language for creating and manipulating the database using. SQL.
● Understanding the concept of Transaction Management and concurrency control.
Teaching
MODULES
Hours
MODULE 1
Databases and Database users: Introduction, Characteristics of database approach,
Advantages of using the DBMS approach, Database system concepts: Data Models, Schemas,
and Instances. Three schema architecture and data independence, database languages, and
interfaces, The Database System environment, Data Modeling using Entities and Relationships 08
Model: using high-level conceptual data models for Entity types, Entity sets, attributes and
keys, Relationship Types, Relationship sets, roles, and structural constraints, Weak entity types,
ER diagrams examples.
SLE: ER Diagrams, Naming Conventions, and Design Issues
Ch 1.1 to 1.3,1.6, 2.1 to 2.4, 3.1 to 3.5,3.7
MODULE 2
Relational Data Model and Relational Database Constraints: Relational Model Concepts,
Relational Model Constraints and relational database schemas, Update operations,
transactions, and dealing with constraint violations, Relational Algebra: Unary relational
08
operations, Relational Algebra operations from set theory, Binary relational operations,
Relational Database Design using ER-to-Relational mapping.
SLE: Examples of queries in relational algebra
Ch 5.1 to 5.3, 8.1 to 8.5,9.1
MODULE 3
Basic SQL: SQL data definition and data types, specifying constraints in SQL, retrieval queries
in SQL, INSERT, DELETE, and UPDATE statements in SQL, More SQL: More complex SQL retrieval
queries, Specifying constraints as assertions and action triggers, Views in SQL, Schema change 08
statements in SQL
SLE: Additional features of SQL
Ch 6.1 to 6.5,7.1 to 7.4
MODULE 4
Database design: Informal Design Guidelines for Relation Schemas; Functional Dependencies;
General Definitions of Second and Third Normal Forms; Boyce Codd Normal Form. Further 08
Topics in Functional Dependencies: Inference Rules, Equivalence, and Minimal Cover,
Properties of Relational Decompositions, Algorithms for Relational Database Schema
SLE: Normal Forms Based on Primary Keys
Ch 14.1 to 14.5,15.1 to 15.3
MODULE 5
Transaction Processing: Introduction to Transaction Processing, Transaction states and
additional operations, Desirable properties of Transactions, characterizing schedules based on
Serializability, Concurrency Control in Databases: Two-Phase Locking Techniques for 08
Concurrency Control
SLE: Guaranteeing Serializability by Two-Phase Locking
Ch 20.1, 20.2.1, 20.3, 20.5.1,20.5.2,21.1.1, 21.1.2
PRACTICAL MODULE
Module3
1.Consider the following schema for a Library Database: Demonstration
BOOK (BOOK_ID, TITLE, PUBLISHER_NAME, PUB_YEAR)
BOOK_AUTHORS (BOOK_ID, AUTHOR_NAME)
PUBLISHER (NAME, ADDRESS, PHONE)
20
BOOK_COPIES (BOOK_ID, BRANCH_ID, NO_OF_COPIES)
BOOK_LENDING (BOOK_ID, BRANCH_ID, CARD_NO, DATE_OUT, DUE_DATE)
LIBRARY_BRANCH (BRANCH_ID, BRANCH_NAME, ADDRESS)
CARD (CARD_NO)
Write SQL queries to
a) Retrieve details of all books in the library – id, title, name of publisher, authors, number
of copies in each branch.
b) Get the particulars of borrowers who have borrowed more than 3 books, but from Jan
2017 to Jun 2017.
c) Partition the BOOK table based on year of publication. Demonstrate its working with a
simple query.
d) Create a view of all books and its number of copies that are currently available in the
library.
Delete a book in the BOOK table. Update the contents of other tables to reflect this data
manipulation operation.

2. Consider the following schema for Order Database: Demonstration


SALESMAN (SALESMAN_ID, NAME, CITY, COMMISSION)
CUSTOMER (CUSTOMER_ID, CUST_NAME, CITY, GRADE, SALESMAN_ID)
ORDERS (ORD_NO, PURCHASE_AMT, ORD_DATE, CUSTOMER_ID, SALESMAN_ID)
Write SQL queries to
a) Count the customers with grades above Bangalore’s average.
b) Find the name and numbers of all salesmen who had more than one customer.
c) List all the salesman and indicate those who have and do not have customers in their
cities (Use UNION operation.)
d) Create a view that finds the salesman who has the customer with the highest order of a
day.
e) Demonstrate the DELETE operation by removing salesman with id 1000. All his orders
must also be deleted.

3. Consider the following schema for Company Database: Exercise


EMPLOYEE(SSN, NAME, ADDRESS, GENDER, SALARY, SUPERSSN, DNO)
DEPARTMENT(DNO, DNAME, MGRSSN, MGRSTARTDATE)
DLOCATION(DNO,DLOC)
PROJECT(PNO, PNAME, PLOCATION, DNO)
WORKS_ON(SSN, PNO, HOURS)
Write SQL queries to
a) Make a list of all project numbers for projects that involve an employee whose last name
is ‘Scott’, either as a worker or as a manager of the department that Controls the project.
b) Show the resulting salaries if every employee working on the ‘IoT’ project is Given a 10
percent raise.
c) Find the sum of the salaries of all employees of the ‘Accounts’ department, as well as the
maximum salary, the minimum salary, and the average salary in this department
d) Retrieve the name of each employee who works on the entire projects controlled by
department number 5.
e) For each department that has more than five employees, retrieve the department
number and the number of its employees who are making more than Rs. 6,00,000.

4. Consider the following schema for Airline flight information: Exercise


FLIGHTS (FLNO, SOURCE, DESTINATION, DISTANCE, DEPARTS, ARRIVES, PRICE)
AIRCRAFT (AID, ANAME, CRUISINGRANGE)
CERTIFIED (EID, AID)
EMPLOYEES (EID, ENAME, SALARY)
Note that the Employees relation describes pilots and other kinds of employees as well; every
pilot is certified for some aircraft, and only pilots are certified to fly.
Write SQL queries to
a) Find the names of aircraft such that all pilots certified to operate them earn more than
$80,000.
b) For each pilot who is certified for more than three aircraft, find the eid and the maximum
cruisingrange of the aircraft for which she or he is certified.
c) For all aircraft with cruisingrange over 1000 miles, find the name of the aircraft and the
average salary of all pilots certified for this aircraft.
d) Print the enames of pilots who can operate planes with cruising range greater than 3000
miles but are not certified on any Boeing aircraft.
e) Print the name and salary of every nonpilot whose salary is more than the average salary
for pilots

5. Consider the following schema for College database: Structured Enquiry


STUDENT(SNUM, SNAME, MAJOR, LEVEL, AGE)
CLASS(NAME, MEETS_AT, ROOM, FID)
ENROLLED(SNUM, CNAME)
FACULTY(FID, FNAME, DEPTID )
The meaning of these relations is straightforward; for example, Enrolled has one record per
student-class pair such that the student is enrolled in the class.
Write the following queries in SQL. No duplicates should be printed in any of the answers.
a) Find the names of all Juniors (level = JR) who are enrolled in a class taught by Rakesh.
b) Find the age of the oldest student who is either a History major or enrolled in a course
taught by Ravi.
c) Find the names of all students who are enrolled in two classes that meet at the same
time.
d) For each faculty member that has taught classes only in room R128, print the faculty
member’s name and the total number of classes she or he has taught.
e) For each level, print the level and the average age of students for that level
Open Ended Enquiry:
Students must come up with a mini project that involves the database design for the given scenario and
implement the same using relational database management system and a front end tool.
Textbooks
1. Ramez Elmasri and Shamkant B. Navathe, Fundamentals of Database Systems, 7th Edition, Pearson, 2017.
Reference Books
1. Silberschatz Korth and Sudharshan, Database System Concepts, 6th Edition, Mc-GrawHill, 2013.
2. Coronel, Morris, and Rob, Database Principles Fundamentals of Design, Implementation Management,
Cengage Learning 2012.
3. Ramakrishnan and Gehrke, Database management systems,3rd Edition, McGraw Hill, 2014

COURSE OUTCOMES (COs)


At the end of the course, students will be able to

CO1 Explain concepts of relational database management systems.

CO2 Apply SQL querying techniques to access database for given specifications.

CO3 Design database system for real world application.

Develop database applications by applying the knowledge and understanding of engineering and
CO4 management principles.

CO – PO – PSO Matrix

PO PSO
CO
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3 PSO4

CO1 2 2
CO2 3 3
CO3 2 2
CO4 2 2 2
AVG. 2.5 2 2 2 2.25

You might also like