0% found this document useful (0 votes)
32 views

Assignment 08 End Sem

This document is an assignment submission for a Database Management Systems lab course. It contains 5 questions asking to write PL/SQL code blocks to: 1) Compute a factorial, 2) Determine if a number is prime, 3) Display n terms of the Fibonacci series, 4) Display names and GPAs from a student table using an explicit cursor, and 5) Display names, GPAs and calculated grades from a student table using a cursor and updating the student table to add the grade column.

Uploaded by

ROHAN KUMAR
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)
32 views

Assignment 08 End Sem

This document is an assignment submission for a Database Management Systems lab course. It contains 5 questions asking to write PL/SQL code blocks to: 1) Compute a factorial, 2) Determine if a number is prime, 3) Display n terms of the Fibonacci series, 4) Display names and GPAs from a student table using an explicit cursor, and 5) Display names, GPAs and calculated grades from a student table using a cursor and updating the student table to add the grade column.

Uploaded by

ROHAN KUMAR
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/ 6

Department: Computer

Engineering & Applications

Subject: Database Management System


Lab (CSE3083)

ASSIGNMENT 08
NAME -- ROHAN KUMAR
SEC -- C
ROLL NO -- 52
UNI.ROLL NO –191500669
DATE – 26 NOVEMBER 2020
Course: B.Tech. (CSE)
Year: 2nd Semester : 3rd
SUBMITTED TO – DR. NEERAJ GUPTA
1. Write a PL/SQL code block to compute the factorial of a number.

2. Write a PL/SQL code block to determine whether the number is prime or not.
3. Write a PL/SQL code block to display n terms of a fibonacci series.

4. Write a PL/SQL code block to display the names and GPA of students from student table

using an explicit cursor


5. Write a PL/SQL code block that displays the names, GPA of students along with the

grades of students after calculation from student table using an explicit cursor.

Add a column grade to the student table; update the grades of students to the table after

calculation. (The criteria of grade can be considered as grade = A if gpa>3.7; and grade =

B, otherwise).

You might also like