DBMS_SQL_Lab_Work_3
DBMS_SQL_Lab_Work_3
a) Find out the employee id, names, salaries of all the employees
Query:
sql>select Emp_id,First_Name,Last_Name,Emp_Salary from employees;
b) List out the employees who works under manager 100
Query:
sql>select * from employees where manager_id=100;
c) Find the names of the employees who have a salary greater than or equal to 4800
Query:
sql>select * from employees where EMP_SALARY>=4800;
d) List out the employees whose last name is ‘AUSTIN’
Query:
sql>select * from employees where Last_Name='AUSTIN ';
e) Find the names of the employees who works in departments 60,70 and 80
Query: sql>select * from employees where DEPARTMENT_ID IN(60,70,80);
f) Display the unique Manager_Id from employees table
Query:
sql>select DISTINCT(MANAGER_ID) from employees;