Q 1
Q 1
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 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