Dbms Practicals
Dbms Practicals
Design and Develop SQLDDL statements which demonstrate the use of SQL objects such as Table,
View, Index, Sequence, Synonym, different constraints etc.
2. b Write at least 10 SQL queries on the suitable database application using SQL DML statements.
3 Write at least10 SQL queries for suitable database application using SQL DML statements. d. Note:
Instructor will design the queries which demonstrate the use of concepts like all types of Join ,Sub-Query
and View
4. Consider Tables: 1. Borrower(Roll_no, Name, Date of Issue, Name of Book, Status) 2. Fine(Roll_no,
Date, Amt) • Accept Roll_no and 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 and for days less than 30, Rs. 5 per day.
5. Write a PL/SQL code block to calculate the area of a circle for a value of radius varying from 5 to 9.
Store the radius and the corresponding values of calculated area in an empty table named areas,
consisting of two columns, radius and area
6. 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 marks899and 825 category is Higher
Second Class. Write a PL/SQLblock to use procedure created with above requirement.
Stud_Marks(name, total_marks) Result(Roll,Name, Class)
7. Write a PL/SQL block of code using parameterized Cursor that will merge the data available in the
newly created table N_Roll Call 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
8. 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
9. Write a program to implement MySQL/Oracle database connectivity with any front end language to
implement Database navigation operations (add, delete, edit etc.)
Design and Develop MongoDB Queries using aggregation and indexing with suitable example using
MongoDB
Write a program to implement Mongo DB database connectivity with any front end language to
implement Database navigation operations(add, delete, edit etc.