0% found this document useful (0 votes)
58 views5 pages

db5 PDF

The document contains instructions for a database management systems lab assignment. It asks the student to write PL/SQL blocks to: 1) add two numbers, 2) check if a number is odd or even, 3) reverse a number, 4) write a function for the Fibonacci series, and 5) write a procedure to find the factorial of a number. It also asks the student to write cursors to: 1) display train names and types, 2) display passengers whose reservation status is confirmed, and 3) check if passenger information is stored and print a message accordingly.

Uploaded by

shubh kapil
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)
58 views5 pages

db5 PDF

The document contains instructions for a database management systems lab assignment. It asks the student to write PL/SQL blocks to: 1) add two numbers, 2) check if a number is odd or even, 3) reverse a number, 4) write a function for the Fibonacci series, and 5) write a procedure to find the factorial of a number. It also asks the student to write cursors to: 1) display train names and types, 2) display passengers whose reservation status is confirmed, and 3) check if passenger information is stored and print a message accordingly.

Uploaded by

shubh kapil
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/ 5

DATABASE MANAGEMENT SYSTEM

DATA BASE MANAGEMENT SYSTEMS

LAB ASSIGNMENT-5

NAME:-Ashish Singh

REG.NO:-18BCE2411

SLOT NO:-L55+L56

FACULTY NAME:-Anand Bihari

1) Write a simple PL/SQL block to solve the following

m
1. Add two number

er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu

2. Find odd even.


is
Th
sh

This study source was downloaded by 100000832717836 from CourseHero.com on 12-08-2021 06:08:26 GMT -06:00

https://www.coursehero.com/file/67835723/db5pdf/
DATABASE MANAGEMENT SYSTEM

m
er as
co
eH w
o.
rs e
ou urc
3. Reverse the number.
o
aC s
vi y re
ed d
ar stu
is
Th
sh

4. Write a function to print fibonacci series

This study source was downloaded by 100000832717836 from CourseHero.com on 12-08-2021 06:08:26 GMT -06:00

https://www.coursehero.com/file/67835723/db5pdf/
DATABASE MANAGEMENT SYSTEM

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu

5. Write a procedure to find factorial of a number


is
Th
sh

This study source was downloaded by 100000832717836 from CourseHero.com on 12-08-2021 06:08:26 GMT -06:00

https://www.coursehero.com/file/67835723/db5pdf/
DATABASE MANAGEMENT SYSTEM
Write a cursor for the following
1.Display the train name and type.

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re

2. Display the passenger name whose reservation status is confirmed.


ed d
ar stu
is
Th
sh

This study source was downloaded by 100000832717836 from CourseHero.com on 12-08-2021 06:08:26 GMT -06:00

https://www.coursehero.com/file/67835723/db5pdf/
DATABASE MANAGEMENT SYSTEM
3. Write a cursor to check whether the passenger information is stored or not. If data is not
stored then print “Your information is not given”, otherwise displays the information.

m
er as
co
eH w
o.
rs e
ou urc
o
aC s
vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000832717836 from CourseHero.com on 12-08-2021 06:08:26 GMT -06:00

https://www.coursehero.com/file/67835723/db5pdf/
Powered by TCPDF (www.tcpdf.org)

You might also like