0% found this document useful (0 votes)
37 views2 pages

Q 1

The document outlines various SQL and PL/SQL tasks related to employee and client management, including queries to retrieve employee information based on specific criteria, updates to client records, and the creation of tables and views. It also includes instructions for writing PL/SQL programs to perform calculations and generate series. Additionally, it describes the structure of an enterprise database and operations for managing employee salaries and service records.

Uploaded by

saivishnums
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Q 1

The document outlines various SQL and PL/SQL tasks related to employee and client management, including queries to retrieve employee information based on specific criteria, updates to client records, and the creation of tables and views. It also includes instructions for writing PL/SQL programs to perform calculations and generate series. Additionally, it describes the structure of an enterprise database and operations for managing employee salaries and service records.

Uploaded by

saivishnums
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

EMPLOYEES (Employee_Id, First Name, Last-named, Email, Phone Number, Hire


Date, Job_Id, Salary, Commission_Pct, Manager_Id, Department_Id)

a. Find out the employee id, names, salaries of all the employees.
b. List out the employees who works under manager 100.
c. Find the names of the employees who have a salary greater than or equal to
4800.
d. List out the employees whose last name is ‘AUSTIN’.
e. Find the names of the employees who works in departments 60,70 and 80.
f. Display the unique Manager_Id.
2. Write a PL/SQL program to find the smallest and largest of three numbers.

1. Create Client_master with the following fields (ClientNO, Name, Address,


City, State, bal_due)
a. Insert five records
b. Find the names of clients whose bal_due> 5000 .
c. Change the bal_due of ClientNO “ C123” to Rs. 5100
d. Change the name of Client_master to Client12 .
e. Display the bal_due heading as “BALANCE”
2. Write a PL/SQL program to create table with fields rollno, name, and marks and then
insert a tuple using PL/SQL.

1.Create the tables with the following fields: Faculty (FacultyCode, FacultyName) Subject
(SubjectCode,SubjectName,MaxMark,FacultyCode)
Student(StudentCode,StudentName,DOB,StudentsBranch(CS/EC/EE/ME),Admission
Date)M_Mark (StudentCode, SubjectCode, Mark)
Do the following queries
a. Display the number of faculties.
b. Display the name of subjects for which atleast one student got below 40%.
c. Display the name,subject and percentage of mark who got below 40 %.
d. Display the name of faculties who take more than one subject.
e. Display name,subject,mark, % of mark in ascending order of mark
2. Write a PL/SQL block to read a number and check whether it is odd or even.
1 .An Enterprise wishes to maintain a database to automate its operations. Enterprise is
divided into certain departments and each department consists of employees. The
following two tables describes the automation schemas
Dept (deptno, dname, loc)
Emp (empno, ename, job, mgr, hiredate, sal, comm, deptno)
a. Update the employee salary by 15%, whose experience is greater than
10 years.
b. Delete the employees, who completed 30 years of service.
c. Display the manager who is having maximum number of employees
working under him?
d. Create a view, which contain employee names and their manager

2. .Write a PL/SQL program to generate the Fibonacci series up to a specified number of


terms

You might also like