Display the emps whose manager name is jones
Webselect e.ename as Employee, m.ename as Manager from emp e, emp m where e.mgr = m.empno If you want to get the result for all the records (irrespective of whether they report to anyone or not), append (+) on the second table's name. select e.ename as Employee, m.ename as Manager from emp e, emp m where e.mgr = m.empno(+) WebDisplay the emps whose manager name is jones. A) select * from emp where mgr in (select empno from emp where ename = ‘JONES’); (OR) B) select * from emp where …
Display the emps whose manager name is jones
Did you know?
WebEmp definition, electromagnetic pulse: a burst of electromagnetic energy produced by a nuclear explosion in the atmosphere, considered capable of widespread damage to … WebFeb 6, 2024 · List all the employees whose job is same as jones and their salary lesser than SCOTT. SELECT * FROM EMP. WHERE JOB IN (SELECT JOB. FROM EMP. …
WebFeb 6, 2024 · 9. LIST ALL THE EMPLOYEES WHOSE JOB IS SAME AS SCOTT AND THEIR SALARY GREATER THAN JONES. >select * from emp where job= (select job from emp where ename=’SCOTT’) and sal> (select sal from emp where ename=’JONES’) and empno not in (select empno from emp where ename in (‘SCOTT’,’JONES’)) 10. … Web100) DISPLAY THOSE EMPLOYEES WHOSE MANAGER NAME IS JONES? --[AND ALSO DISPLAY THEIR MANAGER NAME]? SQL> SELECT P.ENAME FROM EMP E, …
WebDisplay the emps whose Mgr name is Jones SQL> Select * from emp where mgr = (select empno from emp where ename = ‘JONES’) ; 083. List the emps whose salary is more than 3000 after giving 20% increment SQL> Select EMP.*,SAL+(SAL*.2) incrsal from emp where SAL+(SAL*.2) > 3000 ; 084. List the emps with their dept names. WebNov 10, 2012 · Q:51) Display those employees whose manager name is Jones? Ans: select e.ename Superior,e1.ename Subordinate from emp e,e1 where e.empno=e1.mgr and e.ename='JONES'; Q:52) Display those employees whose salary is more than 3000 after giving 20% increment?
WebNov 27, 2024 · sql> select * from emp; empno ename job mgr hiredate sal comm deptno 7369 smith clerk 7902 17-dec-80 2900 20 7499 allen salesman 7698 20-feb-81 3600 300 30 7521 ward salesman 7698 22-feb-81 3250 500 30 7566 jones manager 7839 02-apr-81 4975 20 7654 martin salesman 7698 28-sep-81 3250 1400 30 7698 blake manager …
WebAug 1, 2024 · SQL>select p.ename from emp e,emp p where e.empno=p.mgr and e.ename=’JONES’; You must be logged in to reply to this topic. Tagged: display … low income apartments westminster coWeb133. List the details of the department where maximum number of emps are working. 134. Display the emps whose manager name is jones. 135. List the emps who are not working in sales dept. 136. List the names of the emps who are getting the highest sal dept wise. 137. List the managers who are not working under the president. 138. List the … jason aldean fly over stateWebAug 19, 2024 · SELECT * FROM employees WHERE manager_id IN (SELECT emp_id FROM employees WHERE emp_name = 'JONAS'); OR. SELECT * FROM employees WHERE manager_id = (SELECT emp_id FROM employees WHERE emp_name = … low income apartments waldorf mdWebSep 8, 2024 · Employee Name Manager Name ----- Ram Maharaj Sharath Nivas Nivas Maharaj Praveen Sharath Maharaj Sharath In the employee table, there are three columns Employee_id, employee_name and ... jason aldean flyover country youtubeWebq5. write a query to display name and salary of employees earning more than $2850. sql> select ename,sal from emp where sal>2850; ename sal----- -----jones 2975 scott 3000 king 5000 ford 3000 q6. write a query to display employee name and department number for employee number 7900. jason aldean fly over states lyricsWebEach row of this table indicates the ID of an employee, their name, salary, and the ID of their manager. Write an SQL query to find the employees who earn more than their managers. Return the result table in any order. The query result format is in the following example. jason aldean fly over states music videoWeb178) Display those employees whose manager name is JONES. SQL>select p.ename from emp e, emp p where e.empno=p.mgr and e.ename='JONES'; 179) Display those employees whose salary is more than 3000 after giving20% increment. SQL>select ename, sal from emp where (sal+sal*.2) >3000; 180) Display all employees while their dept … low income apartments westerville ohio