Dbms Lab
Dbms Lab
technological aspects, utility and recent trends related to the topic. The assignment framing policy
need to address the average students and inclusive of an element to attract and promote the
intelligent students. The instructor may set multiple sets of assignments and distribute among
batches of students. It is appreciated if the assignments are based on real world
problems/applications. Encourage students for appropriate use of Hungarian notation, proper
indentation and comments. Use of open source software is to be encouraged.
In addition to these, instructor may assign one real life application in the form of a mini-project
based on the concepts learned. Instructor may also set one assignment or mini-project that is
suitable to respective branch beyond the scope of syllabus.
Set of suggested assignment list is provided in groups- A and B. Each student must perform at
least 13 assignments (8-Mandotory plus 4 from remaining 8 assignments) from group A , 5
from group B and 2 mini projects from Group C
Operating System recommended :- 64-bit Open source Linux or its derivative
Programming tools recommended: SQL, PL/SQL, Front End: Java/Perl/PHP/Python/Ruby/.net,
Backend : Monod/MYSQL/Oracle, Database Connectivity : ODBC/JDBC
Books:
References:
1. Ivan Bayross, “SQL, PL/SQL: The Programming Language of Oracle”, BPB Publication, ISBN-
10: 8176560723; ISBN-13: 978-8176560726
2. Kristina Chodorow, Michael Dirolf, “MangoDB: The Definitive Guide”, O’Reilly Publications,
ISBN: 9781449381561
3. Import, Tidy, Transform,” R for Data Science”, O'REILLY, ISBN: 13:978-93-5213-497-7
4. http://www.tutorialspoint.com/json/ & http://docs.mongodb.org/manual/
Suggested List of Laboratory Assignments
Group A- Database Programming Languages – SQL, PL/SQL
1. Study of Open Source Relational Databases : MySQL
2. Design and Develop SQL DDL statements which demonstrate the use of SQL objects such as
Table, View, Index, Sequence, Synonym
3. Design at least 10 SQL queries for suitable database application using SQL DML statements:
Insert, Select, Update, Delete with operators, functions, and set operator.
4. Design at least 10 SQL queries for suitable database application using SQL DML statements:
all types of Join, Sub-Query and View.
5. Unnamed PL/SQL code block: Use of Control structure and Exception handling is mandatory.
Write a PL/SQL block of code for the following requirements:-
Schema:
1. Borrower(Rollin, Name, DateofIssue, NameofBook, Status)
2. Fine(Roll_no,Date,Amt)
Accept roll_no & name of book from user.
Check the number of days (from date of issue), if days are between 15 to 30 then fine
amount will be Rs 5per day.
If no. of days>30, per day fine will be Rs 50 per day & for days less than 30, Rs. 5 per
day.
After submitting the book, status will change from I to R.
If condition of fine is true, then details will be stored into fine table.
Frame the problem statement for writing PL/SQL block inline with above statement.
6. Cursors: (All types: Implicit, Explicit, Cursor FOR Loop, Parameterized Cursor)
Write a PL/SQL block of code using parameterized Cursor, that will merge the data available
in the newly created table N_RollCall with the data available in the table O_RollCall. If the
data in the first table already exist in the second table then that data should be skipped.
Frame the separate problem statement for writing PL/SQL block to implement all types
Syllabus for Third Year Computer Engineering #26/64
Faculty of Engineering Savitribai Phule Pune University, Pune
of Cursors inline with above statement. The problem statement should clearly state the
requirements.
7. PL/SQL Stored Procedure and Stored Function.
Write a Stored Procedure namely proc_Grade for the categorization of student. If marks scored
by students in examination is <=1500 and marks>=990 then student will be placed in
distinction category if marks scored are between 989 and900 category is first class, if marks
899 and 825 category is Higher Second Class
Write a PL/SQL block for using procedure created with above requirement.
Stud_Marks(name, total_marks) Result(Roll,Name, Class)
Frame the separate problem statement for writing PL/SQL Stored Procedure and
function, inline with above statement. The problem statement should clearly state the
requirements.
8. Database Trigger (All Types: Row level and Statement level triggers, Before and After
Triggers). Write a database trigger on Library table. The System should keep track of the
records that are being updated or deleted. The old value of updated or deleted records should
be added in Library_Audit table.
Frame the problem statement for writing Database Triggers of all types, in-line with
above statement. The problem statement should clearly state the requirements.
Group B Large Scale Databases
1. Study of Open Source NOSQL Database: MongoDB (Installation, Basic CRUD operations,
Execution)
2. Design and Develop MongoDB Queries using CRUD operations. (Use CRUD operations,
SAVE method, logical operators)
3. Implement aggregation and indexing with suitable example using MongoDB.
4. Implement Map reduces operation with suitable example using MongoDB.
5. Design and Implement any 5 query using MongoDB
6. Create simple objects and array objects using JSON
7. Encode and Decode JSON Objects using Java/Perl/PHP/Python/Ruby
Group C Mini Project : Database Project Life Cycle
1. Write a program to implement MogoDB database connectivity with PHP/ python/Java
Implement Database navigation operations (add, delete, edit etc. ) using ODBC/JDBC.
2. Implement MYSQL/Oracle database connectivity with PHP/ python/Java Implement Database
navigation operations (add, delete, edit,) using ODBC/JDBC.
3. Using the database concepts covered in Part-I & Part-II & connectivity concepts covered in
Part C, students in group are expected to design and develop database application with
following details:
Requirement Gathering and Scope finalization
Database Analysis and Design:
Design Entity Relationship Model, Relational Model, Database Normalization
Implementation :
Front End : Java/Perl/PHP/Python/Ruby/.net
Backend : MongoDB/MYSQL/Oracle
Database Connectivity : ODBC/JDBC
Testing : Data Validation
Group of students should submit the Project Report which will be consist of documentation
related to different phases of Software Development Life Cycle: Title of the Project, Abstract,
Introduction, scope, Requirements, Data Modeling features, Data Dictionary, Relational
Database Design, Database Normalization, Graphical User Interface, Source Code, Testing
document, Conclusion. Instructor should maintain progress report of mini project throughout
the semester from project group and assign marks as a part of the term work
Syllabus for Third Year Computer Engineering #27/64