You are on page 1of 3

SET-A

Answer any five

1. Write a query to find out details of all employees who has hired in the month of
January.

2. List out employees those who have hired as clerk and analyst.

3. Calculate the sum, average of employees whose job is as like as smiths job.

4. write a PL/SQL program to calculate the factorial of a number.

5. write a PL/SQL procedure to find the reverse of a number.

6.write a PL/SQL program to calculate DA(20%),HRA(40%) and TA(25%)from basic


salary of all employee.

SET-B

Answer any five

1. Write a query to find out the total and grant total of employees of each
department.

2. Write a query to list out those employees whose earning is greater than the
smiths.

3. Wrtite a query to display only the month of hired of all employees.

4. Write a PL?SQL program to calculate the summation of given number.


(123=1+2+3)

5. Write a PL/SQL program to enter the name and department of employee and
display the details of that employee.

6. Write a program to calculate the area of a square.

SET-C

Answer any five

Write a query to display the following format of data from employee table-

Smith is an employee who has hired in the month of February.

1. Write a query to find the corresponding day of the following date-

‘01-apr-98’
2. Write a Query to display the sum and average salary of each department but
job should be ANALYST.

3. Write a PL/SQL program to calculate area of a circle and store it in a new


table called

Cir_area.

4. Write a PL/SQL program to check whether the number is even or odd.

5. Create Function to calculate the power of a number.(22=4)

SET –D

Answer any five

1. Write a query to view name of those employee whose names second letter is
L.

2. Write a query to list employees who worked as CLERK, ANALYST &


PRESIDENT.

3. Create a sequence e which is start with 5 , increment by 2 and end in 30


with nocycle.

4. Create a view of storing data of department 20 from employee table.

5. Write a PL/SQL program to update the SMITH’s job as CLERK.

6. Write a PL/SQL program for Fibonacci series 1, 1, 2, 3….

SET-E

Answer any five

1. Find the number of months between two date ’01-jan-98’ and ‘01-aug-98’.

2. Llist out the employees whose comm. Is greater than the salary.

3. crate a sequence which is start with 2 ,end in 30 ,increment by 1with cycle.


4. write a PL/SQL program to calculate the area of a triangle.

5. Create a procedure for reverse of a number.

6. Write a program to enter the department number and display the department
name from

Dept table.