Download as pdf or txt
Download as pdf or txt
You are on page 1of 33

Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.10

Aim: WAP to find whether a number is less than or greater than 5.


Theory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.11
Aim: WAP to perform various arithmetic operations.
Theory:
1)Addition
Program:

Output:

Faculty Of MCA
Yashodha Technical Campus, Satara.

2)Substraction
Program:

Output:

Faculty Of MCA
Yashodha Technical Campus, Satara.
3) Multiplication:
Program:

Output:

Faculty Of MCA
Yashodha Technical Campus, Satara.
4)Division:
Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.12
Aim: WAP to calculate sum of even numbers upto 10.
Therory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experment No-13
Aim: datatype of WAP to uses sal from table(%type attribute).
Therory:

Program:

Output:

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.14
Aim: WAP to insert employee code into employee table(%rowtype attribute).
Therory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.15

Aim: WAP a PL/SQL code to check whether a number is even or


odd.

Theory:

Program :

Output :

Conclusion :

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.16
Aim : WAP to find grades of a student.
Theory :

Program :

Output :

Conclusion :

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.17

Aim : Write a PLSQL code which explains the usage of no_data_found exception.

Theory :

Program :

Output :

Conclusion :

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.18

Aim : WAP a PL/SQL code to find greater number among three numbers.

Theory :

Program :

Output:

Conclusion :

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.19
Aim : Write a PL/SQL code to demonstrate the predefined exception in program.
Theory :

Program :

Output :-

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.20
Aim: Write a PL/SQL code to remove problem in program 10.

Theory:

Program:

Output:-

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.21

Aim: Write a PL/SQL code which handles more than one exception.

Theory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.22
Aim: Write a PL/SQL code which explains the usage of NO_DATA_FOUND exception.

Theory:

Program:

Output:

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No.23

Aim: Write a PL/SQL code that uses implicit cursor attributes In this program update
salary of employees, if the salary is not updated then display message for that.

Theory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 24

Aim: write a pl/sql code that returns the total no. of rows that are updated using
ROW COUNT attribute.

Theory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 25

Aim: Write a PL/SQL code to delete a record from table, if delete operation
succeeds the insert operation.
Theory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 26

Aim: Write a PL/SQL code to demonstrate the exception.


Theory:

Program:

Output:

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 27

Aim: Create a user defined exception which checks the name of the employee is
bank during the insertion.If you left the name blank it will raise error.
Theory:

Program:

Output:

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 28

Aim: Write a PL/SQL code to display the information of the employee table with
%NOTFOUND attribute.
Theory:

Program:

Output:

Conclusion:

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 29

Aim: Write a PL/SQL code to display the information of a given department.


Theory:

Program:

Output:

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 30
Aim :- Write a PL/SQL code to increase the salary of the employees if the post is of ‘clerk’,
his or her salary will be doubled and if the post is of ‘salesman’ he or she will get the
increment of 5%.

Theory:-

Program:-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Output :-

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 31
Aim :- Write a PL/SQL code to find the sum of two numbers.

Theory :-

Program :-

Faculty Of MCA
Yashodha Technical Campus, Satara.
Output :-

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 32
Aim :- Write a PL/SQL code to find out the salary of an employee if salary is less than
18000 of employee no.7, then add RS 1000 to the original salary of that employee.

Theory :-

Program :-

Output :-

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 33

Aim :- Write a PL/SQL code to find out factorial of a number.


Theory :-

Program :-

Output :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 34
Aim :- Write a PL/SQL code to perform arithmetic operations on some data.

Theory :-

Program :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Output :-

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Name: class:
Roll No: Date:
Subject:

Experiment No. 35

Aim :- Write a PL/SQL code to remove problem in program.


Theory :-

Program :-

Output :-

Conclusion :-

Faculty Of MCA
Yashodha Technical Campus, Satara.

Faculty Of MCA

You might also like