You are on page 1of 12

Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs.

Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Lab Manual

2223 NAL - 2
Advanced Database Systems
[PRACTICAL ACTIVITY BOOK]

Prepared by
Dr. Vasanthi Muniasamy

Department of Computer Science,


Program: Information Systems
Academic year-2023-2024

1
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Index Page

S. No Marks Given Date Submission Date Signature

1 3

2 3

3 3

4 2

5 2

6 2

7 2

8 5

9 8

2
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity - 1
Marks: 3

1.Write a PL/SQL program to find the Factorial value of given numbers.

Result:

3
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity - 2
Marks: 3

1. Write a PL/SQL program to produce the Fibonacci series up to the given number limit.

Result:

4
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity – 3
Marks: 3

1. Write a PL/SQL program to display the characters of your name in right triangle format.

Result:

5
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity – 4
Marks: 2

1. Write a PL/SQL program to display the numbers up to N in right triangle format.

Result:

6
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity – 5
Marks: 2

1. Write a PL/SQL program to print a table for a given number.

Result:

7
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity – 6
Marks: 2

1. Write a PL/SQL program to greet according to the system time.

Result:

8
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity – 7
Marks: 2

1. Write a PL/SQL program to print odd numbers within the given range.

Result:

9
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

Activity – 8
Marks: 5

1. Write a PL/SQL program to display the information [ID, NAME] of student table also display the number of
records in the table using CURSOR.

Step 1: Create a table student with ID, NAME, MARKS.

Step 2: Insert the following values.

1 AAA 100
2 BBB 78
3 CCC 65
Step3:;.ne

Result:

Activity – 9
10
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus
Marks: 8

1. Write a PL/SQL program to implement the concept of trigger.

Step 1: Create a table student with ID, NAME, MARKS

Step 2: Insert the following values.

1 JACK 90
2 BILLY 58
3 ROSE 70
Step 3:

create a table studummy with ID, NAME, MARKS

Step 4:

Step 5:

delete from student where id=2;

Step 6:
Select * from studummy;
Step 7:
Select * from student;

Result:

11
Dr. Vasanthi Muniasamy, Mrs. Sridevi Tharanidharan, Mrs. Anamika Raj,
Department of Computer Science, Al-Mahala Female Campus

12

You might also like