0% found this document useful (0 votes)
20 views3 pages

DBMS Syllabus

Uploaded by

mys.akash.d
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)
20 views3 pages

DBMS Syllabus

Uploaded by

mys.akash.d
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/ 3

Database Management Systems (Theory & Practical)

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 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.
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.
operations, Relational Algebra operations from set theory, Binary relational operations,
Relational Database Design using ER-to-Relational mapping.
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 statements in SQL
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 Topics in Functional Dependencies: Inference Rules, Equivalence,
and Minimal Cover, Properties of Relational Decompositions, Algorithms for Relational
Database Schema
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
Concurrency Control

PRACTICAL MODULE
Module3 Demonstration
1. Consider the following schema for a Library Database:
BOOK (BOOK_ID, TITLE, PUBLISHER_NAME, PUB_YEAR)
BOOK_AUTHORS (BOOK_ID, AUTHOR_NAME)
PUBLISHER (NAME, ADDRESS, PHONE)
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:


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

You might also like