DBMS QUESTION
DBMS QUESTION
(AUTONOMOUS)
End Semester Examinations – Nov / Dec 2024
Mark Allocation
Concluding
Experimental setup Execution of Practical
Activities Viva-Voce Total
(Aim) (Program)
(Output/Result)
30 30 30 10 100
S.
QUESTIONS COs BTL
No
Create the following tables with the mapping given below.
a. stu_details (reg_no, stu_name, DOB, address, city)
b. mark_details (reg_no, mark1, mark2, mark3, total)
(i) Alter the table mark_details to add a column average with data type as
long.
(ii) Display the months between the DOB and till date.
1. CO1 K3
(iii)Using alter command drop the column address from the table
stu_details.
(iv) Write a pl/sql program to find the sum &avg marks of all the
student using procedures.
(v) Design and implement payroll system to insert data's in DB and
update Data’s in DB.
Create the following tables with the mapping given below.
a. emp_details (emp_no, emp_name, DOB, address, doj, mobile_no, dept_no,
salary).
b. dept_details (dept_no, dept_name, location).
(i) Display the months between the doj and till date.
2. CO1 K4
(ii) Alter the table emp_details to add a primary key constraint on emp_no.
(iii)Write a pl/sql program to display the salary of a particular employee using
functions.
(iv) Design and implement library information system to insert
data's in DB and update Data’s in DB.
S.
QUESTIONS COs BTL
No
Create the following tables with the mapping given below.
a. emp_details (emp_no, emp_name, DOB, address, doj, mobile_no,
dept_no, salary).
b. dept_details (dept_no, dept_name, location).
(i). Create a view emp1 from emp_details such that it contains only
emp_no and emp_name.
3. (ii) Select dept_no from dept_details and not in emp_details using both the CO2 K6
tables.
Create a table named as student and insert values into the table.
Create the following table with the mapping given below.
Book(book_name,author,price,quantity).
(iii) Write a query to update the quantity by double in the table book.
(i)List the price of the book which one is between the price of 400 & 500.
17. (ii)Creating Trigger To Insert Values To Another Table. CO4 K6
(iii) Write a pl/sql program to find the factorial of a given number.
(iv) Design and implement payroll system to insert data's in DB and delete
Data from DB.
Create the following table with the mapping given below.
retailor(Cust_id, Cust_name, place, ph_no,pan_no).
(i) Alter the table to add a column pin_no.
18. (ii) Display the details of customer who are all living in bangalore. CO5 K3
(iii) Display the customer name whose first letter is ‘M’.
(iv) Write a pl/sql program in procedure using in & out parameter.
(v) Design Customer Details Form using Front end tool.
S.
QUESTIONS COs BTL
No
Create the following table with the mapping given below.
a.Product_master(product_name,purchase_prize,sell_prize,profit,quantity,
balance)
b. Customer (Cust_id, Cust_name, Addr, ph_no,pan_no).
(i)Display all the customer names along with their address.
(ii) Drop the table customer.
19. CO5 K4
(iii) Change thesell_price to 5000&purchase_price amount to 4000 for any
one of the product in product_master.
(iv) Create a trigger to update the balance in product_ master table whenever
transaction table will have a new entry.
(v) Design and implement payroll system to insert data's in DB and update
Data’s in DB .
Create the following table with the mapping given below.
a. stu_details (reg_no, stu_name, DOB, address, city)
b. mark_details (reg_no, mark1, mark2, mark3, total)
(i) Find out the name of all students along with their total marks.
20. CO4 K5
(ii) Change the mark1 as ‘78’ from ‘59’ and alter the total for a particular student.
(iii) Delete all the records and its memory space from the table student.
(iv) Write a pl/sql program to check whether the given number is prime or not.
(v) Design Student Details Form using Front end tool.
Create the following table with the mapping given below.
a.Administration(employee_salary, development _cost, fund_amount,
turn_over,bonus)
b. Emp_details (emp_no, emp_name, DOB, address, doj, mobile_no,
dept_no, salary).
21. (i)Calculate the total and average salary amount of the administration table. CO3 K4
(ii)Display total salary spent for employees.
(iii)Display total fund amount.
(iv)write a pl/sql code block to calculate the area & circumference of a
circle
(v)Design Arithmetic Operations Form using Front end tool.
S.
QUESTIONS COs BTL
No
Create the following table with the mapping given below.
emp_details (emp_no, emp_name, DOB, address, doj,
mobile_no, dept_no, salary).
(i)List all employees which starts with either B or C.
22. CO5 K3
(ii)Display the names and dob of all employees who were born in
Feburary.
(iii)List out the employee names whose salary is greater than 15000.
(iv)Write a pl/sql program to find the sum of 1-100 numbers.
Create the following tables with the mapping given below.
a. Customer (Cust_id, Cust_name, Addr, ph_no,pan_no)
b. Loan (Loan_id, Amount, Interest, Cust_id,branch)
(i)Display the entire loan relation in descending
order of the amount.
(ii)Find the names of all branches in loan
23. CO4 K4
relation.
(iii)Find all customer id's for loan's with loan amount between 5000 and
15000.
(iv)write a pl/sql code to accept the text and check the text is
palindrome or not.
(v)Design a Report for Banking Process.
Create the following table with the mapping given below.
book(book_name,author_name,price,quantity).
(i) Write a query to find out the minimum quantity of books available in
the table book.
24. CO4 K3
(ii)Write a query to find the total price of all the books present in the table.
(iii) Write a query to find the average amount of all the books.
(iv) Write a pl/sql program to generate numbers from 0 to 25 in step of 5
S.
QUESTIONS COs BTL
No
Create the following table with the mapping given below.
Product_master(product_name,product_no,purchase_prize,sell_prize,profit,quanti
ty,balance)
(i)Change the purchase_prize into 551 for the product_no pd3.
(ii) Delete all products from product_master where the Quantity is equal to 40.
(iii) Find the product no & product name of the product which have a
25. CO5 K4
purchase amount equal to Rs.5500.
(iv) Write a pl/sql program to find the factorial of a given number using
functions.
(v) Design and implement payroll system to insert data's in DB and delete Data
from DB.
L T P C
OBJECTIVES:
To understand data definitions and data manipulation commands
To learn the use of nested and join queries
To understand functions, procedures and procedural extensions of data bases
To be familiar with the use of a front end tool
To understand design and implementation of typical database applications
LIST OF EXPERIMENTS
8 Database Design using ER modeling, normalization and Implementation for any application
Total : 60 Periods
OUTCOMES:
Upon the completion of this course, the students will be able to
BOS Chairman