0% found this document useful (0 votes)
2 views11 pages

DBMS QUESTION

The document outlines the end semester examination details for the Database Management Systems Laboratory for B.E-CSE (Artificial Intelligence and Machine Learning) at Mahendra Institute of Technology. It includes course outcomes, mark allocation, and a series of practical questions aimed at assessing students' understanding of database concepts and PL/SQL programming. The questions cover various topics such as table creation, data manipulation, and application design using front-end tools.

Uploaded by

nithyaamr
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
Download as doc, pdf, or txt
0% found this document useful (0 votes)
2 views11 pages

DBMS QUESTION

The document outlines the end semester examination details for the Database Management Systems Laboratory for B.E-CSE (Artificial Intelligence and Machine Learning) at Mahendra Institute of Technology. It includes course outcomes, mark allocation, and a series of practical questions aimed at assessing students' understanding of database concepts and PL/SQL programming. The questions cover various topics such as table creation, data manipulation, and application design using front-end tools.

Uploaded by

nithyaamr
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1/ 11

MAHENDRA INSTITUTE OF TECHNOLOGY

(AUTONOMOUS)
End Semester Examinations – Nov / Dec 2024

B.E-CSE(ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING)


Semester : IV Regulations - 2022
AI2224402 – DATABASE MANAGEMENT SYSTEMS LABORATORY

Date : 10.12.24 AN Duration: 3 Hours Maximum Marks: 100

Course Outcomes (Cos)

CO1 Use typical data definitions and manipulation commands.

CO2 Design applications to test Nested and Join Queries

CO3 Implement simple applications that use Views

CO4 Implement applications that require a Front-end Tool

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.

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)
4. (i). Display only those rows whose total ranges between 250 and 300. CO2 K6
(ii). Drop the table mark_details.
(iii). Delete the row whose reg_no=161.
(iv). Display all details whose names begins with 'a'.
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).
5. CO3 K6
(i) Truncate the table dept_details.
(ii) Display the structure of the table emp_details.
(iii) Convert the first letter of emp_name into capitals.
(iv) Display the emp_namegetting highest salary.
Create the following tables with the mapping given below.
a.book (book_name,author,price,quantity).
b.customer (Cust_id, Cust_name, Addr, ph_no,pan_no)
(i) Truncate the table customer.
6. CO3 K3
(ii) List the author of the book which one have the price of 200.
(iii)List the price of the book which one is between the price of 175 & 250.
(iv)Retrieve all the details from the table book whose author name start with K.
(v)Write a pl/sql program to find the largest of two numbers
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)Find out the name of all students.
7. (ii) List all the student detail that who are all located in Chennai. CO4 K4
(iii) Drop the table mark_details.
(iv) Write a pl/sql program to find the address of a particular student using
functions.
(v)Design Student Details from the table using Front end tool.
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)
(i)Display the Cust_name having both Loan and Account .
8. (ii) Display number of Loans, the sum of Loan Amount of a Particular CO4 K6
Custname(“LEENA”)
(iii)Display the Custname doesn’t hold any Account nor taken any Loan
(iv) Add a column nol(number of loans)
(v) Design a Report for Banking Process.
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).
9. (i) Select dept_no from dept_details and not in emp_details using both the tables. CO3 K5
(ii) Create a table named as student and insert values into the table.
(iii) Write a pl/sql program to display the salary of a particular
employee using functions.
(iv)Write PL/SQL Program to generate even numbers.
Create the following tables with the mapping given below.
Phone_book(ph_no,name,door_no,street,place)

(i)Display all names along withph_no.


(ii)Add a column pin_no. K6
10. CO3
(iii)Write a pl/sql program to find the address of a particular customer using
functions.
(iv)Write a pl/sql program to find the factorial of a given number using
functions.
S.
QUESTIONS COs BTL
No
Create the following tables with the mapping given below.
emp_details (emp_no, emp_name, DOB, address, doj, mobile_no, salary).
(i)Add a column dept_no(department number).
11. (ii)Drop the column salary by altering the table. CO3 K3
(iii)Rename the table as’Employee’.
(iv) Write a PL/SQL program to find the greatest of 3 numbers.
(v) Design Employee Details Form using Front end tool.
Create the following table with the mapping given below.
Customer (Cust_id, Cust_name, Addr,
ph_no,pan_no).
(i)Delete the row where cust_name=’NANCY’.
12. CO2 K3
(ii) Update the addr where cust_name=’MATHIK’.
(iii) Display the details of a customer named ‘LITHUANA’.
(iv) Write a pl/sql program to swap two numbers.
(v) Write a pl/sql program to find the summation of odd numbers using for loop.
Create the following table with the mapping given below.
book(book_name,author_name,price,quantity).
(i) write a query to update the quantity by double in the table book.
(ii) List all the book_namewhose price is greater than Rs.400.
13. CO1 K4
(iii) Retrieve the list of author_name whose first letter is ’a’ along with the
book_name and price.
(iv) Write a pl/sql program to swap two numbers.
(v) Write a pl/sql program to check whether the given number is prime or not.
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 the name of the student whose reg_no is’107’.
14. (ii)Display the details of a particular student whose name is ‘MATHU’.
CO1 K3
(iii) Rename the table mark_details as ’academics’.
(iv)Write a pl/sql program to find the sum &avg marks of all the
student using procedures.
(v)Write a pl/sql program to check whether the given number is prime
or not.
S.
QUESTIONS COs BTL
No
Create the following tables with the mapping given below.
a. assessment(reg_no,name, mark1, mark2, mark3, total)
b.dept_details (dept_no, dept_name, location).
(i) Using alter command drop the column location from the table dept_details.
15. (ii) Display all dept_name along withdept_no. CO1 K4
(iii)Drop the table dept_details.
(iv)Write a pl/sql program to find the sum &avg marks of all the
student using procedures.
(v)Design a Report for Student Details.
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)Select dept_no from dept_details and not in emp_details using both the
tables.
16. CO5 K4
(ii)Display the structure of the table emp_details.
(iii) Display the emp_namegetting highest salary
(iv) Creating Trigger On Table Employ For Not AllowingInsert/Update/Delete
Operations On Friday.
(v) Design and implement payroll system to insert data's in DB and delete Data
from DB.
Create the following tables with the mapping given below.
Phone_book(ph_no,name,door_no,street,place).

(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.

Encl: Syllabus copy

Name and Signature of the Name and Signature of the


Internal Examiner External Examiner

L T P C

DATABASE MANAGEMENT SYSTEMS


AI2224302
LABORATORY 0 0 3 1.5

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

1 Implement of DDL commands of SQL with suitable examples.

2 Database Querying – Simple queries, Sub queries

3 Creation of Views, Sequences, Synonyms

4 Database Programming: Implicit and Explicit Cursors

5 Procedures and Functions

6 Creation of database triggers


7 Exception Handling

8 Database Design using ER modeling, normalization and Implementation for any application

9 Database Connectivity with Front End Tools

10 Case Study using real life database applications

Total : 60 Periods
OUTCOMES:
Upon the completion of this course, the students will be able to

1. Use typical data definitions and manipulation commands.

2. Design applications to test Nested and Join Queries


3. Implement simple applications that use Views
4. Implement applications that require a Front-end Tool

BOS Chairman

You might also like