0% found this document useful (0 votes)
49 views

DBA Lab Syllabus

This document outlines the course content and requirements for a Database Management Systems Laboratory course with mini project. It includes the course objectives, instructions for exams and projects, sample schemas and SQL queries for practice, and the requirements for the mini project portion including designing an ER diagram, normalizing relations, creating a database, inserting data, executing queries and triggers, stored procedures, and generating reports. Students will individually complete a mini project on a problem they identify, following the outlined design, implementation, and reporting steps.

Uploaded by

MADHURA J
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

DBA Lab Syllabus

This document outlines the course content and requirements for a Database Management Systems Laboratory course with mini project. It includes the course objectives, instructions for exams and projects, sample schemas and SQL queries for practice, and the requirements for the mini project portion including designing an ER diagram, normalizing relations, creating a database, inserting data, executing queries and triggers, stored procedures, and generating reports. Students will individually complete a mini project on a problem they identify, following the outlined design, implementation, and reporting steps.

Uploaded by

MADHURA J
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

DAYANANDA SAGAR COLLEGE OF ENGINEERING

(An Autonomous Institute Affiliated to VTU, Belagavi) Approved by AICTE & ISO 9001:2008 Certified)
Accredited by National Assessment & Accreditation Council (NAAC) with ‘A’ grade, Bengaluru-560078
DEPARTMENT OF INFORMATION SCIENCE AND ENGINEERING SCHEME 2018
Database Management Systems Laboratory with Miniproject
Course code: 18IS5DLDBM Credits: 02
L: P: T: S: 0:2:1:0 CIE Marks: 50
Exam Hours: 03 SEE Marks: 50
Course objectives:
1. Execute SQL commands.
2. Implement simple exercises on relational database schema.
3. Design a relational database schema for specific database application using SQL
4. Apply normalization procedure on relational database schema.
Instructions:
In the examination, one exercise from Part A is to be asked for a total of 20 marks. The mini project developed under
Part B has to be evaluated for a total of 30 marks.
For Part A:
1. The exercises are to be solved in an RDBMS environment like Oracle / MySQL / DB2.
2. Suitable tuples have to be entered so that queries are executed correctly.
3. The results of the queries must be displayed directly.
4. Relevant queries other than the ones listed along with the exercises may also be asked in the examination.
5. Questions must be asked based on lots.
For Part B:
1. Front end may be created using any of VB/HTML/JAVA/Python.
2. Back end may be Oracle/DB2/SQL/MYSQL.
3. Report should be prepared in a standard format prescribed for project work.
4. All applications must be demonstrated on desktop/laptop as a stand-alone or web based application. (Mobile apps on
Android/IOS are not permitted.)
Part A: Lab Experiments
Prg Course Content Hr
Consider the following schema for a Library Database:
BOOK (Book_id, Title, Publisher_Name, Pub_Year) BOOK_AUTHORS (Book_id, Author_Name)
PUBLISHER (Pub_id,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)
Write SQL queries to
1 3
i. Create the above tables by properly specifying the primarykeys and the foreign keys.
ii. Enter at least five tuples for each relation.
iii. Retrieve details of all books in the library – book-id, title, publisher name, authors, number of copies, etc.
iv. Get the details of borrowers who have borrowed more than 3 book from Jan 2019 to Jun 2019
v. Demonstrate the DELETE operation by deleting a book details in BOOK table.
vi. Partition the BOOK table based on year of publication. Demonstrate its working with a simple query.
vii. Create a view of all books and its number of copies that are currently available in the Library.
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
i. Create the above tables by properly specifying the primarykeys and the foreign keys.
ii. Enter at least five tuples for each relation.
2 3
iii. Count the customers with grades above Bangalore’s average.
iv. Find the name and numbers of all salesmen who had more than one customer.
v. List all salesmen and indicate those who have and don’t have customers in their cities (Use UNION
operation.)
vi. Create a view that finds the salesman who has the customer with the highest order of a day.
vii. Demonstrate the DELETE operation by removing salesman with id 1000. All his orders must also be
deleted.
Consider the schema for Movie Database:
ACTOR (Act_id, Act_Name, Act_Gender) DIRECTOR (Dir_id, Dir_Name, Dir_Phone)
MOVIES (Mov_id, Mov_Title, Mov_Year, Mov_Lang, Dir_id)
MOVIE_CAST (Act_id, Mov_id, Role)
RATING (Mov_id, Rev_Stars)
Write SQL queries to
i. Create the above tables by properly specifying the primarykeys and the foreign keys.
3 3
ii. Enter at least five tuples for each relation.
iii. List the titles of all movies directed by ‘Mr. Dwarakesh’.
iv. Find the movie names where actors acted in two or more movies.
iv. List all actors who acted in a movie before 2005 and also in a movie after 2015 (use JOIN operation).
v. Find the title of movie and number of stars rated for each movie that has at least one rating and also find the
highest number of stars that movie received. Sort the result by movie title.
vi. Update rating of all movies directed by ‘Lankesh’ to 3.
The following relations keep track of airline flight information:
FLIGHTS (no: integer, from: string, to: string, distance: integer,Departs: time, arrives: time, price: real)
AIRCRAFT (aid: integer, aname: string, cruisingrange: integer)
Certified (eid: integer, aid: integer)
EMPLOYEES (eid: integer, ename: string, salary: integer)
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 each of the following queries in SQL.
4 i. Find the names of aircraft such that all pilots certified tooperate them have salaries more than Rs.80, 000. 3
ii. For each pilot who is certified for more than three aircrafts,find the eidand the maximum cruisingrangeof the
aircraftfor which she or he is certified.
iii. Find the names of pilots whose salary is less than the priceof the cheapest route from Bengaluru to
Frankfurt.
iv. For all aircraft with cruisingrangeover 1000 Kms, Find thename of the aircraft and the average salary of all
pilotscertified for this aircraft.
v. Find the names of pilots certified for some Boeing aircraft.
vi. Find the aids of all aircraft that can be used on routes from Bengaluru to New Delhi.
Consider the following database for a banking enterprise
BRANCH(branch-name:string, branch-city:string, assets:real)
ACCOUNT(accno:int, branch-name:string, balance:real)
DEPOSITOR(customer-name:string, accno:int)
CUSTOMER(customer-name:string, customer-street:string,
customer-city:string)
LOAN(loan-number:int, branch-name:string, amount:real)
BORROWER(customer-name:string, loan-number:int)
5 3
Write each of the following queries in SQL.
i. Create the above tables by properly specifying the primary keys and the foreign keys
ii. Enter at least five tuples for each relation
iii. Find all the customers who have at least two accounts at the Main branch.
iv. Find all the customers who have an account at all the branches located in a specific city.
v. Demonstrate how you delete all account tuples at every branch located in a specific city.
vi. Find the names of all depositors of a specific branch.
vii. Find the details of all loan holder of a specific branch.
Part B: Mini project
Each student has to carry out a mini project on the problem identified individually. For the problem identified :
1) List the set of requirements
2) Design an ER Diagram by identifying the following:
i. Entities(Minimum 5) and attributes
ii. Entity Types, Entity Sets, keys and Value Sets.
iii. Relationship types, Relationship Degree.
iv. Relationship Constraints: Cardinality Ratio and Participation.
v. Attributes of Relationship Types.
vi. Weak Entity Types if any.
3) Draw the Schema Diagram with Referential Integrity Constraints displayed.
4) Normalize the relations up to BCNF or 3rd Normal Form.
5) Create the database.
6) Insert suitable records in the database.
7) Execute any two distinctive queries on the database.
8) Create and execute any two triggers on the database.
9) Create and execute any one stored procedures on the database.
10) Generate any two typical reports on the database.
The code developed during the project will be reviewed by internal faculties during the semester. At the completion of a
project the student will submit a project report, which will be evaluated by duly appointed examiner(s).

You might also like