You are on page 1of 5

EXERCISE 10: To implement the basics of PL/SQL.

Faculty Name: Dr. Abishi Chowdhury

Lab Slot: L25+L26

Class Number: CH2023240501608

Subject: Database System Lab (BCSE302P)

Date: 12/04/2024

Due Date for Submission: 12/04/2024

NAME – ROHIT KUMAR SINGH

REG. NO. - 22BRS1258

1. Create the following relations: Student (sID: int, sName: varchar2(10), CGPA:
int, city: varchar2(15), phone_number: int)

Insert 6 tuples in Student.


2. Write a PL/SQL code block that displays the names, and CGPA of students

3. Write a PL/SQL code block to compute the factorial of a number.

4. Write a PL/SQL code block to determine whether the number is prime or


not.

5. Write a PL/SQL code block to display n terms of a fibonacci series.


6. Write a PL/SQL code block that displays the total CGPA.

You might also like