Aim & Procedure Queries & Program Output & Result Viva-Voce Record Total 20 30 30 10 10 100
Aim & Procedure Queries & Program Output & Result Viva-Voce Record Total 20 30 30 10 10 100
(Regulations 2017)
Aim & Procedure Queries & Output & Viva-Voce Record Total
Program Result
20 30 30 10 10 100
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.
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.
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.