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

Aim & Procedure Queries & Program Output & Result Viva-Voce Record Total 20 30 30 10 10 100

The document provides instructions for a database management systems lab exam involving multiple choice questions and tasks related to creating, manipulating, and querying various databases using SQL and PL/SQL. Students are instructed to design databases for entities like insurance, companies, students, books, and placement/training. They must perform queries, write functions, triggers, and procedures to retrieve, insert, update, and manipulate data in the database tables. The exam assesses students' skills in SQL, PL/SQL, database design, and completing tasks like calculating values and validating data.

Uploaded by

Prakash
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)
44 views3 pages

Aim & Procedure Queries & Program Output & Result Viva-Voce Record Total 20 30 30 10 10 100

The document provides instructions for a database management systems lab exam involving multiple choice questions and tasks related to creating, manipulating, and querying various databases using SQL and PL/SQL. Students are instructed to design databases for entities like insurance, companies, students, books, and placement/training. They must perform queries, write functions, triggers, and procedures to retrieve, insert, update, and manipulate data in the database tables. The exam assesses students' skills in SQL, PL/SQL, database design, and completing tasks like calculating values and validating data.

Uploaded by

Prakash
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

Page 1 of 3

B.E / B.Tech./B.Arch. PRACTICAL END SEMESTER EXAMINATIONS, APRIL / MAY 2019


Fourth Semester

CS8481 & DATABASE MANAGEMENT SYSTEMS LABORATORY

(Regulations 2017)

Time : 3 Hours Answer any one Question Max. Marks 100

(To be filled by the question paper setter)

Aim & Procedure Queries & Output & Viva-Voce Record Total
Program Result
20 30 30 10 10 100

1. Consider the Insurance database given below.


PERSON(driver_ID, name, address)
CAR(regno, model,year )
ACCIDENT(report_number,accd_date,location)
OWNS(driver_id,regno)
PARTICIPATED(driver_id,regno,report_number,damage_amount)
i. Specify the primary keys and foreign keys and enter at least five tuples for
each relation.
ii. Update the damage amount for the car with specific regno in the accident
with report number 1025.
iii. Add a new accident to the database.
iv. Find the total number of people who owned cars that were involved in
accidents in the year 2018.
v. Find the number of accidents in which cars belonging Wagon R were
involved.

3. Create the Company database with the following tables and do the following:
Administration(employee_salary, development _cost, fund_amount,
turn_over,bonus)
Emp_details (emp_no, emp_name, DOB, address, doj, mobile_no, dept_no,
salary).
i. Calculate the total and average salary amount of the employees of each
department.
ii. Display total salary spent for employees.
iii. Develop a PL/SQL function to display total fundamount spent by the
administration department .

4. Create the student database with the following tables and do the following:
assessment(reg_no,name, mark1, mark2, mark3, total)
dept_details (dept_no, dept_name, location).
Page 2 of 3

i. Using alter command drop the column location from the table dept_details.
ii. Display all dept_name along withdept_no.
iii. Drop the table dept_details.
iv. Write a PL/SQL Trigger to verify the data before insertion on assessment
table.

6. Consider the following tables.


SAILOR(sid, sname, rating, age)
BOATS(bid, bname, colour)
RESERVES(sid, bid, day)
i. List the sailors in the descending order of their rating.
ii. List the sailors whose youngest sailor for each rating and who can vote.
iii. List the sailors who have reserved for both ‘RED’ and ‘GREEN’ boats.
iv. Create synonym for sailor table.
v. Create a PL / SQL Function that accepts SID and returns the name of sailor.

7. Consider the following relations for an order processing application:


CUSTOMER (CID, NAME)
PRODUCT (PCODE, PNAME, UNIT_PRICE)
CUST_ORDER (OCODE, ODATE, CID)
ORDER_PRODUCT (OCODE, PCODE, QTY)
i. Develop a Trigger to ensure the product to be Pen , Eraser, Pencil during
insertion
ii. Develop a PL/SQL Function to calculate the total cost of ordered product.
iii. Use Sequence for PCODE insertion in product table

10. Consider the following database of student enrollment in courses and books
adopted for that course.
STUDENT(regno, name, major, bdate)
COURSE(courseno, cname, dept)
ENROLL(regno, courseno, sem, marks)
i. Display the total number of students register for more than two courses in a
department specified.
ii. Display the students who have secured the highest mark in each course
iii. List the youngest student of each course in all departments.
iv. Develop PL/SQL Cursor that selects marks of a particular student in a
specified semester.

11. The following are maintained by a book dealer.


AUTHOR(author_id, name, city, country)
PUBLISHER(publisher_id, name, city, country)
CATALOG(book_id, title, author_id, publisher_id , category_id, year, price)
Page 3 of 3

CATEGORY(category_id, description)
ORDER_DETAILS(order_no, book_id, quantity)
i. List the author of the book that has minimum sales.
ii. Display total number of books in each category.
iii. Develop a PL/SQL procedure that updates the price of the book by 10%
those with maximum sales.

12. Create the student database with the following tables and do the following:
mark_details(reg_no,name, mark1, mark2, mark3, total)
dept_details (dept_no, dept_name, HOD)
stud_details(reg_no,name, dob, address)
i. Using alter command to assign foreign key in mark_details.
ii. Display the address of the students who have secured the top three ranks.
iii. Write a PL/SQL procedure to update the grade according to the marks
secured.

15. Create a database for Placement and Training cell.


Stud_details(regno, name, dept, percentage)
Company(companyID,name, noOfVacancy)
Training_Details(CourseID, name, Trainer)
Placed(regno, companyID,minSal)
i. List the students who are eligible for recruitment in a particular company.
ii. Display the student who has been placed with highest salary
iii. Develop a PL/SQL exception that provides an alternate for not eligible
students.

You might also like