DB02
DB02
2. Display employees earning more than Rs.5,000. Label the column name
“Employee”.
Ans: select emp_name as "Employee" from emp where salary>5000;
7. Display the list of employees along with their department name and its
manager.
Ans: select emp.emp_name, dept.dept_name, dept.manager from emp inner join
dept on emp.dept_no=dept.dept_no;
9. Delete the records of all the employees hired in 1981 from EMP table.
Ans: delect from emp where to_char(joining_date, ‘yyyy’)=1981;